12.03.26
This commit is contained in:
@@ -495,6 +495,12 @@ class Sale(metaclass=PoolMeta):
|
|||||||
line.unit_price = d.price_index.get_price(Date.today(),line.unit,line.currency,True)
|
line.unit_price = d.price_index.get_price(Date.today(),line.unit,line.currency,True)
|
||||||
Line.save([line])
|
Line.save([line])
|
||||||
|
|
||||||
|
class PriceComposition(ModelSQL,ModelView):
|
||||||
|
__name__ = 'price.composition'
|
||||||
|
|
||||||
|
component = fields.Char("Component")
|
||||||
|
price = fields.Numerci("Price")
|
||||||
|
|
||||||
class SaleLine(metaclass=PoolMeta):
|
class SaleLine(metaclass=PoolMeta):
|
||||||
__name__ = 'sale.line'
|
__name__ = 'sale.line'
|
||||||
|
|
||||||
@@ -588,6 +594,7 @@ class SaleLine(metaclass=PoolMeta):
|
|||||||
)
|
)
|
||||||
|
|
||||||
pricing_rule = fields.Text("Pricing description")
|
pricing_rule = fields.Text("Pricing description")
|
||||||
|
price_composition = fields.One2Many('price.composition',"Price composition")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def report_fixing_rule(self):
|
def report_fixing_rule(self):
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ this repository contains the full copyright notices and license terms. -->
|
|||||||
<field name="certif"/>
|
<field name="certif"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="/form/notebook/page[@id='taxes']" position="before">
|
<xpath expr="/form/notebook/page[@id='taxes']" position="before">
|
||||||
|
<page string="Price composition" col="4" id="pc">
|
||||||
|
<field name="price_composition"/>
|
||||||
|
</page>
|
||||||
<page string="Lots" col="4" id="lots">
|
<page string="Lots" col="4" id="lots">
|
||||||
<field name="lots" view_ids="lot.lot_view_tree_sequence"/>
|
<field name="lots" view_ids="lot.lot_view_tree_sequence"/>
|
||||||
</page>
|
</page>
|
||||||
|
|||||||
Reference in New Issue
Block a user