diff --git a/sale_restricted_qty/__manifest__.py b/sale_restricted_qty/__manifest__.py index 8fde547c2d5e..7687dd0da71b 100644 --- a/sale_restricted_qty/__manifest__.py +++ b/sale_restricted_qty/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Sale order min quantity", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Sales Management", "author": "Akretion, Odoo Community Association (OCA)", "contributors": ["Ashish Hirpara"], diff --git a/sale_restricted_qty/tests/test_sale.py b/sale_restricted_qty/tests/test_sale.py index 425c9c8687db..7a68254ea2cf 100644 --- a/sale_restricted_qty/tests/test_sale.py +++ b/sale_restricted_qty/tests/test_sale.py @@ -49,9 +49,8 @@ def setUp(self): } ) - def refrech_sale_values(self, sale_order): + def refresh_sale_values(self, sale_order): sale_order.order_line._compute_sale_restricted_qty() - sale_order.order_line.product_id_change() sale_order.order_line._compute_is_qty_less_min_qty() sale_order.order_line._compute_is_qty_bigger_max_qty() sale_values = sale_order._convert_to_write(sale_order._cache) @@ -65,7 +64,7 @@ def test_check_sale_order_min_qty_required(self): sale_order = self.sale_order_model.new( {"partner_id": self.partner.id, "order_line": [(0, 0, line_values)]} ) - sale_values = self.refrech_sale_values(sale_order) + sale_values = self.refresh_sale_values(sale_order) sale_values.update( { "partner_shipping_id": sale_values["partner_id"], @@ -107,7 +106,7 @@ def test_check_sale_order_max_qty_required(self): sale_order = self.sale_order_model.create( {"partner_id": self.partner.id, "order_line": [(0, 0, line_values)]} ) - sale_values = self.refrech_sale_values(sale_order) + sale_values = self.refresh_sale_values(sale_order) self.sale_order_model.create(sale_values) line_values["product_uom_qty"] = 2.0 # Create sale order line with Qty great then max Qty @@ -143,7 +142,7 @@ def test_check_sale_order_multiple_qty_required(self): sale_order = self.sale_order_model.create( {"partner_id": self.partner.id, "order_line": [(0, 0, line_values)]} ) - sale_values = self.refrech_sale_values(sale_order) + sale_values = self.refresh_sale_values(sale_order) self.sale_order_model.create(sale_values) line_values["product_uom_qty"] = 20 # Create sale order line with Qty multiple Qty