diff --git a/stock_reserve_sale/__manifest__.py b/stock_reserve_sale/__manifest__.py index bcb594198d5e..4f3f234c4a82 100644 --- a/stock_reserve_sale/__manifest__.py +++ b/stock_reserve_sale/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Stock Reserve Sales", - "version": "13.0.1.1.0", + "version": "15.0.1.0.0", "author": "Camptocamp, Odoo Community Association (OCA)", "category": "Warehouse", "license": "AGPL-3", diff --git a/stock_reserve_sale/model/sale.py b/stock_reserve_sale/model/sale.py index 8f3a9ea1ddc6..981e48ba98f6 100644 --- a/stock_reserve_sale/model/sale.py +++ b/stock_reserve_sale/model/sale.py @@ -237,10 +237,9 @@ def unlink(self): if line.reservation_ids: raise UserError( _( - 'Sale order line "[%s] %s" has a related reservation.\n' + 'Sale order line "[{}] {}}" has a related reservation.\n' "Please unreserve this line before " "delete the line" - ) - % (line.order_id.name, line.name) + ).format(line.order_id.name, line.name) ) return super().unlink() diff --git a/stock_reserve_sale/readme/CONTRIBUTORS.rst b/stock_reserve_sale/readme/CONTRIBUTORS.rst index 9f19ab9b7e75..01b48c85a2e0 100644 --- a/stock_reserve_sale/readme/CONTRIBUTORS.rst +++ b/stock_reserve_sale/readme/CONTRIBUTORS.rst @@ -6,3 +6,7 @@ * `Tecnativa `_: * Carlos Roca + +* `GreenIce `_: + + * Fernando La Chica diff --git a/stock_reserve_sale/wizard/sale_stock_reserve.py b/stock_reserve_sale/wizard/sale_stock_reserve.py index 90454f79d8e8..80a029fad801 100644 --- a/stock_reserve_sale/wizard/sale_stock_reserve.py +++ b/stock_reserve_sale/wizard/sale_stock_reserve.py @@ -29,7 +29,7 @@ def _default_owner(self): lines = model.browse(self.env.context["active_ids"]) try: - owners = {l.stock_owner_id for l in lines} + owners = {line.stock_owner_id for line in lines} except AttributeError: return self.env["res.partner"] # module sale_owner_stock_sourcing not installed, fine