mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
[FIX][document_url] Remove error when clicking on add URL (#102)
[FIX][document_url] Remove error when clicking on add URL
BTW, completely refactored 😉. It turns out Odoo's framework is not that bad when you discover it. It's just not documented.
This commit is contained in:
committed by
Pedro M. Baeza
parent
27ea491285
commit
0aa97eff14
@@ -39,4 +39,5 @@ class AddUrlWizard(orm.TransientModel):
|
||||
'res_model': context['active_model'],
|
||||
}
|
||||
attachment_obj.create(cr, uid, attachment, context=context)
|
||||
return {'type': 'ir.actions.act_close_wizard_and_reload_view'}
|
||||
# Close client dialog
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user