From 5c4adc6b01cd3aabaf22f64161939b484714c8b3 Mon Sep 17 00:00:00 2001 From: Mathias Markl Date: Thu, 18 Jan 2018 17:57:56 +0100 Subject: [PATCH] test --- muk_attachment_lobject/__init__.py | 4 ++-- muk_attachment_lobject/__manifest__.py | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/muk_attachment_lobject/__init__.py b/muk_attachment_lobject/__init__.py index 07f1830..7d22bc2 100644 --- a/muk_attachment_lobject/__init__.py +++ b/muk_attachment_lobject/__init__.py @@ -27,7 +27,7 @@ from odoo import api, SUPERUSER_ID def _uninstall_force_storage(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) - config = env['ir.config_parameter'] - config.sudo().set_param('ir_attachment.location', 'file') + config = env['ir.config_parameter'].sudo() + config.set_param('ir_attachment.location', 'file') attachment = env['ir.attachment'] attachment.sudo().force_storage() \ No newline at end of file diff --git a/muk_attachment_lobject/__manifest__.py b/muk_attachment_lobject/__manifest__.py index 0888ed4..6dc8dd4 100644 --- a/muk_attachment_lobject/__manifest__.py +++ b/muk_attachment_lobject/__manifest__.py @@ -37,22 +37,13 @@ "author": "MuK IT", "contributors": [ "Mathias Markl ", - "Kerrim Abdelhamed ", ], 'depends': [ 'muk_fields_lobject', ], "data": [ - "views/dms_actions.xml", - "views/dms_file_view.xml", - "views/res_config_view.xml", - "views/ir_attachment_view.xml", ], "demo": [ - "demo/dms_settings_demo.xml", - "demo/dms_directory_demo.xml", - "demo/dms_config_demo.xml", - "demo/dms_attachment_demo.xml", ], "qweb": [ "static/src/xml/*.xml",