minor fix
This commit is contained in:
parent
0b32d6f23d
commit
fe469f5d98
|
@ -41,9 +41,11 @@ class PriceListLine(metaclass=PoolMeta):
|
|||
]
|
||||
|
||||
def get_price_computed(self, name):
|
||||
context = self.price_list.get_context_formula(
|
||||
None, self.product, self.product.list_price, 0, None)
|
||||
value = self.get_unit_price(**context)
|
||||
value = 0
|
||||
if self.product:
|
||||
context = self.price_list.get_context_formula(
|
||||
None, self.product, self.product.list_price, 0, None)
|
||||
value = self.get_unit_price(**context)
|
||||
return value
|
||||
|
||||
def get_price_w_tax_computed(self, name=None):
|
||||
|
|
|
@ -4,9 +4,9 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<data>
|
||||
|
||||
<xpath expr="/tree/field[@name='formula']" position="after">
|
||||
<field name="price_computed"/>
|
||||
<!-- <field name="price_computed"/>
|
||||
<field name="price_w_tax_computed"/>
|
||||
<field name="profit"/>
|
||||
<field name="profit"/> -->
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
|
Loading…
Reference in New Issue