From 36aade1acc237ea6bbba12c56e2c11c01a9d2dd0 Mon Sep 17 00:00:00 2001 From: davidborromeo Date: Wed, 1 Sep 2021 11:51:26 +0200 Subject: [PATCH] [MIG] stock_orderpoint_uom: Migration to 14.0 --- stock_orderpoint_uom/__manifest__.py | 2 +- stock_orderpoint_uom/models/procurement_group.py | 4 ++-- stock_orderpoint_uom/readme/USAGE.rst | 2 +- .../views/stock_warehouse_orderpoint_view.xml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stock_orderpoint_uom/__manifest__.py b/stock_orderpoint_uom/__manifest__.py index aef50e657..145306a09 100644 --- a/stock_orderpoint_uom/__manifest__.py +++ b/stock_orderpoint_uom/__manifest__.py @@ -4,7 +4,7 @@ "name": "Stock Orderpoint UoM", "summary": "Allows to create procurement orders in the UoM indicated in " "the orderpoint", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "category": "Warehouse Management", diff --git a/stock_orderpoint_uom/models/procurement_group.py b/stock_orderpoint_uom/models/procurement_group.py index e56f759eb..e86e51dbc 100644 --- a/stock_orderpoint_uom/models/procurement_group.py +++ b/stock_orderpoint_uom/models/procurement_group.py @@ -10,7 +10,7 @@ class ProcurementGroup(models.Model): _inherit = "procurement.group" @api.model - def run(self, procurements): + def run(self, procurements, raise_user_error=True): # 'Procurement' is a 'namedtuple', which is not editable. # The 'procurement' which needs to be edited is created new # and the previous one is deleted. @@ -46,4 +46,4 @@ class ProcurementGroup(models.Model): for index in indexes_to_pop: procurements.pop(index) procurements.extend(new_procs) - return super(ProcurementGroup, self).run(procurements) + return super(ProcurementGroup, self).run(procurements, raise_user_error) diff --git a/stock_orderpoint_uom/readme/USAGE.rst b/stock_orderpoint_uom/readme/USAGE.rst index a38d3e7de..f00d29f2e 100644 --- a/stock_orderpoint_uom/readme/USAGE.rst +++ b/stock_orderpoint_uom/readme/USAGE.rst @@ -1 +1 @@ -Go to 'Inventory > Master Data > Reordering Rules' and indicate a Procurement UoM. +Go to 'Inventory > Products > Products' and indicate both the unit of measure and the procurement unit of measure for the chosen product. diff --git a/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml b/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml index b9b95b8be..7244ac7fe 100644 --- a/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml +++ b/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml @@ -3,9 +3,9 @@ stock.warehouse.orderpoint.tree stock.warehouse.orderpoint - + - +