document_url: Fix inclusion of unknown field 'user_id'

Remove 'user_id' key in a dictionary prepared to
create an 'ir.attachment' object, because it's
an unknown field for that model
This commit is contained in:
ernesto 2018-04-28 09:12:30 -04:00
parent 19c7c1eb39
commit fd0428bef0

View File

@ -34,7 +34,6 @@ class AddUrlWizard(orm.TransientModel):
'name': form.name, 'name': form.name,
'type': 'url', 'type': 'url',
'url': url.geturl(), 'url': url.geturl(),
'user_id': uid,
'res_id': active_id, 'res_id': active_id,
'res_model': context['active_model'], 'res_model': context['active_model'],
} }