From e18eb58fb11314b30a666ee10fb3ff5471fbde50 Mon Sep 17 00:00:00 2001 From: David Montull Date: Fri, 4 Mar 2022 13:01:52 +0100 Subject: [PATCH] [15.0][MIG] stock_location_lockdown: Migration to 15.0 --- stock_location_lockdown/__manifest__.py | 2 +- stock_location_lockdown/models/stock_quant.py | 9 ++++++--- stock_location_lockdown/readme/CONTRIBUTORS.rst | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/stock_location_lockdown/__manifest__.py b/stock_location_lockdown/__manifest__.py index 02fec7801..9209d0128 100644 --- a/stock_location_lockdown/__manifest__.py +++ b/stock_location_lockdown/__manifest__.py @@ -7,7 +7,7 @@ "author": "Akretion, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "category": "Warehouse", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "application": False, "installable": True, diff --git a/stock_location_lockdown/models/stock_quant.py b/stock_location_lockdown/models/stock_quant.py index 0a0ede37a..f23a566d5 100644 --- a/stock_location_lockdown/models/stock_quant.py +++ b/stock_location_lockdown/models/stock_quant.py @@ -16,8 +16,11 @@ class StockQuant(models.Model): if record.location_id.block_stock_entrance: raise ValidationError( _( - "The location %s is blocked and can " - "not be used for moving the product %s" + "The location %(location)s is blocked and can " + "not be used for moving the product %(product)s" ) - % (record.location_id.display_name, record.product_id.display_name) + % { + "location": record.location_id.display_name, + "product": record.product_id.display_name, + } ) diff --git a/stock_location_lockdown/readme/CONTRIBUTORS.rst b/stock_location_lockdown/readme/CONTRIBUTORS.rst index 0bddb053a..f20d1e9d0 100644 --- a/stock_location_lockdown/readme/CONTRIBUTORS.rst +++ b/stock_location_lockdown/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Florian da Costa +* David Montull Guasch