[FIX] sale_order_batch: store all quantities and round open values
This commit is contained in:
parent
a413d007ea
commit
73e11724f9
5 changed files with 9 additions and 3 deletions
|
|
@ -43,6 +43,7 @@ Changelog
|
||||||
:2.1.0: Add "In Progress" and "Cancelled" state
|
:2.1.0: Add "In Progress" and "Cancelled" state
|
||||||
:2.2.0: Add invoice status and menues
|
:2.2.0: Add invoice status and menues
|
||||||
:2.2.1: Add lst_price to view
|
:2.2.1: Add lst_price to view
|
||||||
|
:2.2.2: store all quantities and round open values
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"author": "BAKEUP",
|
"author": "BAKEUP",
|
||||||
"website": "https://www.bakeup.org",
|
"website": "https://www.bakeup.org",
|
||||||
"category": "Sale",
|
"category": "Sale",
|
||||||
"version": "16.0.2.2.1",
|
"version": "16.0.2.2.2",
|
||||||
"depends": ["sale", "product"],
|
"depends": ["sale", "product"],
|
||||||
"data": [
|
"data": [
|
||||||
"data/ir_sequence_data.xml",
|
"data/ir_sequence_data.xml",
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,9 @@ class SaleOrderBatchProduct(models.Model):
|
||||||
)
|
)
|
||||||
sale_order_line_ids = fields.One2many("sale.order.line", "batch_product_id", states=READONLY_FIELD_STATES)
|
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_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")
|
product_uom = fields.Many2one(related="product_id.uom_id")
|
||||||
lst_price = fields.Float(
|
lst_price = fields.Float(
|
||||||
"Sales Price",
|
"Sales Price",
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@
|
||||||
:2.0.0: Move product logic to sale order lines
|
:2.0.0: Move product logic to sale order lines
|
||||||
:2.1.0: Add "In Progress" and "Cancelled" state
|
:2.1.0: Add "In Progress" and "Cancelled" state
|
||||||
:2.2.0: Add invoice status and menues
|
:2.2.0: Add invoice status and menues
|
||||||
:2.2.1: Add lst_price to view
|
:2.2.1: Add lst_price to view
|
||||||
|
:2.2.2: store all quantities and round open values
|
||||||
|
|
@ -410,6 +410,8 @@ anymore as log as they are part of a batch. Only Sale Orders in state Qutotation
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field"><th class="field-name">2.2.1:</th><td class="field-body">Add lst_price to view</td>
|
<tr class="field"><th class="field-name">2.2.1:</th><td class="field-body">Add lst_price to view</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="field"><th class="field-name">2.2.2:</th><td class="field-body">store all quantities and round open values</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue