From 3709c1e9fca6584a71df8b849e3089aafb8baf4d Mon Sep 17 00:00:00 2001 From: mav-adhoc Date: Fri, 3 Jan 2025 09:36:50 -0300 Subject: [PATCH] [MIG] stock_exception: Migration to 18.0 --- stock_exception/__manifest__.py | 2 +- stock_exception/data/stock_exception_data.xml | 2 -- stock_exception/tests/test_stock_exception.py | 2 +- stock_exception/views/stock_view.xml | 8 ++++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/stock_exception/__manifest__.py b/stock_exception/__manifest__.py index 5e27363a5a0d..ecac6c094b81 100644 --- a/stock_exception/__manifest__.py +++ b/stock_exception/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Stock Exception", "summary": "Custom exceptions on stock picking", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "category": "Generic Modules/Warehouse Management", "author": "Ecosoft, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_exception/data/stock_exception_data.xml b/stock_exception/data/stock_exception_data.xml index cbda52fcd01a..b046af107ccd 100644 --- a/stock_exception/data/stock_exception_data.xml +++ b/stock_exception/data/stock_exception_data.xml @@ -8,8 +8,6 @@ 20 minutes - -1 - diff --git a/stock_exception/tests/test_stock_exception.py b/stock_exception/tests/test_stock_exception.py index 04dd479522a6..e7e15222a666 100644 --- a/stock_exception/tests/test_stock_exception.py +++ b/stock_exception/tests/test_stock_exception.py @@ -21,7 +21,7 @@ def setUpClass(cls): cls.product_1 = cls.product_model.create( { "name": "Test Product 1", - "type": "product", + "type": "consu", "default_code": "PROD1", "uom_id": cls.uom_unit.id, } diff --git a/stock_exception/views/stock_view.xml b/stock_exception/views/stock_view.xml index 20ed8563db87..ad8b5af8050d 100644 --- a/stock_exception/views/stock_view.xml +++ b/stock_exception/views/stock_view.xml @@ -1,9 +1,9 @@ - + Stock Exception Rules exception.rule - tree,form - + list,form + [('model', 'in', ['stock.picking', 'stock.move', 'stock.move.line'])] @@ -12,7 +12,7 @@ >{'active_test': False, 'default_model' : 'stock.picking'}