[IMP] sale_order_batch: add price to batch product list view
This commit is contained in:
parent
8c24525cc4
commit
a413d007ea
6 changed files with 16 additions and 4 deletions
|
|
@ -41,7 +41,8 @@ Changelog
|
||||||
:1.1.1: Remove validity date
|
:1.1.1: Remove validity date
|
||||||
: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.1.0: Add invoice status and menues
|
:2.2.0: Add invoice status and menues
|
||||||
|
:2.2.1: Add lst_price to view
|
||||||
|
|
||||||
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.0",
|
"version": "16.0.2.2.1",
|
||||||
"depends": ["sale", "product"],
|
"depends": ["sale", "product"],
|
||||||
"data": [
|
"data": [
|
||||||
"data/ir_sequence_data.xml",
|
"data/ir_sequence_data.xml",
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,13 @@ class SaleOrderBatchProduct(models.Model):
|
||||||
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(compute="_compute_uom_qty", string="Quantity")
|
||||||
product_uom = fields.Many2one(related="product_id.uom_id")
|
product_uom = fields.Many2one(related="product_id.uom_id")
|
||||||
|
lst_price = fields.Float(
|
||||||
|
"Sales Price",
|
||||||
|
related="product_id.lst_price",
|
||||||
|
digits="Product Price",
|
||||||
|
help="""The sale price is managed from the product template. Click on the
|
||||||
|
'Configure Variants' button to set the extra attribute prices.""",
|
||||||
|
)
|
||||||
product_packaging_id = fields.Many2one(
|
product_packaging_id = fields.Many2one(
|
||||||
comodel_name="product.packaging",
|
comodel_name="product.packaging",
|
||||||
string="Packaging",
|
string="Packaging",
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,5 @@
|
||||||
:1.1.1: Remove validity date
|
:1.1.1: Remove validity date
|
||||||
: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.1.0: Add invoice status and menues
|
:2.2.0: Add invoice status and menues
|
||||||
|
:2.2.1: Add lst_price to view
|
||||||
|
|
@ -406,7 +406,9 @@ 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.1.0:</th><td class="field-body">Add “In Progress” and “Cancelled” state</td>
|
<tr class="field"><th class="field-name">2.1.0:</th><td class="field-body">Add “In Progress” and “Cancelled” state</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field"><th class="field-name">2.1.0:</th><td class="field-body">Add invoice status and menues</td>
|
<tr class="field"><th class="field-name">2.2.0:</th><td class="field-body">Add invoice status and menues</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="field"><th class="field-name">2.2.1:</th><td class="field-body">Add lst_price to view</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,7 @@
|
||||||
<field name="product_template_id" optional="hide"/>
|
<field name="product_template_id" optional="hide"/>
|
||||||
<field name="product_id"/>
|
<field name="product_id"/>
|
||||||
<field name="product_uom_qty"/>
|
<field name="product_uom_qty"/>
|
||||||
|
<field name="lst_price"/>
|
||||||
<field name="product_packaging_qty" groups="product.group_stock_packaging"/>
|
<field name="product_packaging_qty" groups="product.group_stock_packaging"/>
|
||||||
<field name="product_packaging_id" groups="product.group_stock_packaging"/>
|
<field name="product_packaging_id" groups="product.group_stock_packaging"/>
|
||||||
</tree>
|
</tree>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue