diff --git a/sale_order_batch/README.rst b/sale_order_batch/README.rst index 408d66e..618b60d 100644 --- a/sale_order_batch/README.rst +++ b/sale_order_batch/README.rst @@ -43,6 +43,7 @@ Changelog :2.1.0: Add "In Progress" and "Cancelled" state :2.2.0: Add invoice status and menues :2.2.1: Add lst_price to view +:2.2.2: store all quantities and round open values Bug Tracker =========== diff --git a/sale_order_batch/__manifest__.py b/sale_order_batch/__manifest__.py index f743195..0c82464 100644 --- a/sale_order_batch/__manifest__.py +++ b/sale_order_batch/__manifest__.py @@ -4,7 +4,7 @@ "author": "BAKEUP", "website": "https://www.bakeup.org", "category": "Sale", - "version": "16.0.2.2.1", + "version": "16.0.2.2.2", "depends": ["sale", "product"], "data": [ "data/ir_sequence_data.xml", diff --git a/sale_order_batch/models/sale_order_batch_product.py b/sale_order_batch/models/sale_order_batch_product.py index dee90fc..f22c443 100644 --- a/sale_order_batch/models/sale_order_batch_product.py +++ b/sale_order_batch/models/sale_order_batch_product.py @@ -25,7 +25,9 @@ class SaleOrderBatchProduct(models.Model): ) sale_order_line_ids = fields.One2many("sale.order.line", "batch_product_id", states=READONLY_FIELD_STATES) product_uom_category_id = fields.Many2one(related="product_id.uom_id.category_id", depends=["product_id"]) - product_uom_qty = fields.Float(compute="_compute_uom_qty", string="Quantity") + product_uom_qty = fields.Float( + string="Quantity", compute="_compute_uom_qty", precompute=True, store=True, digits=[12, 3] + ) product_uom = fields.Many2one(related="product_id.uom_id") lst_price = fields.Float( "Sales Price", diff --git a/sale_order_batch/readme/HISTORY.rst b/sale_order_batch/readme/HISTORY.rst index 6e33e1b..4ff955d 100644 --- a/sale_order_batch/readme/HISTORY.rst +++ b/sale_order_batch/readme/HISTORY.rst @@ -6,4 +6,5 @@ :2.0.0: Move product logic to sale order lines :2.1.0: Add "In Progress" and "Cancelled" state :2.2.0: Add invoice status and menues -:2.2.1: Add lst_price to view \ No newline at end of file +:2.2.1: Add lst_price to view +:2.2.2: store all quantities and round open values \ No newline at end of file diff --git a/sale_order_batch/static/description/index.html b/sale_order_batch/static/description/index.html index f447550..26b6e56 100644 --- a/sale_order_batch/static/description/index.html +++ b/sale_order_batch/static/description/index.html @@ -410,6 +410,8 @@ anymore as log as they are part of a batch. Only Sale Orders in state Qutotation