[MIG] document_url: Migration to 12.0

This commit is contained in:
ernesto
2019-04-25 15:07:56 -04:00
committed by Bhavesh Heliconia
parent e36e20e554
commit 9991362a25
9 changed files with 95 additions and 97 deletions

View File

@@ -7,6 +7,7 @@ from urllib import parse
class AddUrlWizard(models.Model):
_name = 'ir.attachment.add_url'
_description = 'Wizard to add URL attachment'
name = fields.Char('Name', required=True)
url = fields.Char('URL', required=True)
@@ -29,4 +30,4 @@ class AddUrlWizard(models.Model):
'res_model': self.env.context['active_model'],
}
attachment_obj.create(attachment)
return {'type': 'ir.actions.act_close_wizard_and_reload_view'}
return {'type': 'ir.actions.act_window_close'}