mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[MIG] document_url: Migration to 12.0
This commit is contained in:
committed by
Bhavesh Heliconia
parent
e36e20e554
commit
9991362a25
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user