From f856807611c56343dba9beac28bbe68065865231 Mon Sep 17 00:00:00 2001 From: ernestotejeda <38267832+ernestotejeda@users.noreply.github.com> Date: Mon, 30 Apr 2018 22:01:53 -0400 Subject: [PATCH] document_url: Fix inclusion of unknown field 'user_id' (#165) Remove 'user_id' key in a dictionary prepared to create an 'ir.attachment' object, because it's an unknown field for that model --- document_url/__openerp__.py | 2 +- document_url/wizard/document_url.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/document_url/__openerp__.py b/document_url/__openerp__.py index 898a1076..d3e83d27 100644 --- a/document_url/__openerp__.py +++ b/document_url/__openerp__.py @@ -4,7 +4,7 @@ # © 2016 ACSONE SA/NV () { 'name': 'URL attachment', - 'version': '9.0.2.0.1', + 'version': '9.0.2.0.2', 'category': 'Tools', 'author': "Tecnativa," "Odoo Community Association (OCA)", diff --git a/document_url/wizard/document_url.py b/document_url/wizard/document_url.py index 95c4f48a..c213d21b 100644 --- a/document_url/wizard/document_url.py +++ b/document_url/wizard/document_url.py @@ -34,7 +34,6 @@ class AddUrlWizard(orm.TransientModel): 'name': form.name, 'type': 'url', 'url': url.geturl(), - 'user_id': uid, 'res_id': active_id, 'res_model': context['active_model'], }