[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:
Jairo Llopis
2016-10-14 03:17:51 +02:00
committed by Pedro M. Baeza
parent 27ea491285
commit 0aa97eff14
4 changed files with 34 additions and 52 deletions

View File

@@ -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