From 2191fa61fda52927f09a25b02db87a3250650b61 Mon Sep 17 00:00:00 2001 From: Carolina Fernandez Date: Tue, 12 Sep 2023 05:47:34 -0300 Subject: [PATCH] [IMP] stock_inventory_discrepancy: pre-commit stuff [MIG] stock_inventory_discrepancy: Migration to 16.0 --- .../odoo/addons/stock_inventory_discrepancy | 1 + setup/stock_inventory_discrepancy/setup.py | 6 ++++++ stock_inventory_discrepancy/__manifest__.py | 3 ++- .../migrations/15.01.0.0/noupdate_changes.xml | 13 ------------- .../migrations/15.01.0.0/post-migration.py | 13 ------------- stock_inventory_discrepancy/readme/CONTRIBUTORS.rst | 1 + .../wizards/confirm_discrepancy_wiz.xml | 4 ++-- 7 files changed, 12 insertions(+), 29 deletions(-) create mode 120000 setup/stock_inventory_discrepancy/odoo/addons/stock_inventory_discrepancy create mode 100644 setup/stock_inventory_discrepancy/setup.py delete mode 100644 stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml delete mode 100644 stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py diff --git a/setup/stock_inventory_discrepancy/odoo/addons/stock_inventory_discrepancy b/setup/stock_inventory_discrepancy/odoo/addons/stock_inventory_discrepancy new file mode 120000 index 000000000000..4bd9c428d0fa --- /dev/null +++ b/setup/stock_inventory_discrepancy/odoo/addons/stock_inventory_discrepancy @@ -0,0 +1 @@ +../../../../stock_inventory_discrepancy \ No newline at end of file diff --git a/setup/stock_inventory_discrepancy/setup.py b/setup/stock_inventory_discrepancy/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/stock_inventory_discrepancy/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py index b6eec0fd65fa..bbdeca59bbf5 100644 --- a/stock_inventory_discrepancy/__manifest__.py +++ b/stock_inventory_discrepancy/__manifest__.py @@ -1,11 +1,12 @@ # Copyright 2017-2020 ForgeFlow S.L. (http://www.forgeflow.com) +# Copyright 2023 Tecnativa - Carolina Fernandez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Stock Inventory Discrepancy", "summary": "Adds the capability to show the discrepancy of every line in " "an inventory and to block the inventory validation when the " "discrepancy is over a user defined threshold.", - "version": "15.0.1.0.1", + "version": "16.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "category": "Warehouse", diff --git a/stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml b/stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml deleted file mode 100644 index 8356d4ac2898..000000000000 --- a/stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - diff --git a/stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py b/stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py deleted file mode 100644 index 21264cdfa733..000000000000 --- a/stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2023 Tecnativa - Ernesto Tejeda -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from openupgradelib import openupgrade - - -@openupgrade.migrate() -def migrate(env, version): - openupgrade.load_data( - env.cr, - "stock_inventory_discrepancy", - "migrations/15.0.1.0.0/noupdate_changes.xml", - ) diff --git a/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst b/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst index cbc8f8f8b871..1167cb775eed 100644 --- a/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst +++ b/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst @@ -5,3 +5,4 @@ * `Tecnativa `_: * Ernesto Tejeda + * Carolina Fernandez diff --git a/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.xml b/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.xml index abe8cd299612..e69108e35239 100644 --- a/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.xml +++ b/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.xml @@ -7,10 +7,10 @@ 999