From 6038f93cb677be45cca1a43fb25a7767a70e5a8f Mon Sep 17 00:00:00 2001 From: arantxa-s73 Date: Tue, 26 Nov 2024 16:14:01 +0100 Subject: [PATCH] [MIG] l10n_es_aeat_mod592: Migration to 16.0 --- l10n_es_aeat_mod592/__manifest__.py | 2 +- l10n_es_aeat_mod592/models/mod592.py | 2 +- setup/l10n_es_aeat_mod592/odoo/addons/l10n_es_aeat_mod592 | 1 + setup/l10n_es_aeat_mod592/setup.py | 6 ++++++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 120000 setup/l10n_es_aeat_mod592/odoo/addons/l10n_es_aeat_mod592 create mode 100644 setup/l10n_es_aeat_mod592/setup.py diff --git a/l10n_es_aeat_mod592/__manifest__.py b/l10n_es_aeat_mod592/__manifest__.py index ead0730bacd..4cec6d3e449 100644 --- a/l10n_es_aeat_mod592/__manifest__.py +++ b/l10n_es_aeat_mod592/__manifest__.py @@ -5,7 +5,7 @@ { "name": "AEAT modelo 592", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Accounting", "author": "Tecnativa, Binhex System Solutions, Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-spain", diff --git a/l10n_es_aeat_mod592/models/mod592.py b/l10n_es_aeat_mod592/models/mod592.py index 336b8da2913..afd881302b8 100644 --- a/l10n_es_aeat_mod592/models/mod592.py +++ b/l10n_es_aeat_mod592/models/mod592.py @@ -332,7 +332,7 @@ def calculate(self): else: manufacturer_lines.append((0, 0, m_vals)) item.manufacturer_line_ids = manufacturer_lines - item.recompute() + item.env.flush_all() return res def button_recover(self): diff --git a/setup/l10n_es_aeat_mod592/odoo/addons/l10n_es_aeat_mod592 b/setup/l10n_es_aeat_mod592/odoo/addons/l10n_es_aeat_mod592 new file mode 120000 index 00000000000..d8ea8128b7b --- /dev/null +++ b/setup/l10n_es_aeat_mod592/odoo/addons/l10n_es_aeat_mod592 @@ -0,0 +1 @@ +../../../../l10n_es_aeat_mod592 \ No newline at end of file diff --git a/setup/l10n_es_aeat_mod592/setup.py b/setup/l10n_es_aeat_mod592/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/l10n_es_aeat_mod592/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)