main #7
@@ -278,15 +278,6 @@ class Sale(metaclass=PoolMeta):
|
|||||||
else:
|
else:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
@property
|
|
||||||
def get_pricing_text(self):
|
|
||||||
pricing_text = ''
|
|
||||||
if self.price_components:
|
|
||||||
for pc in self.price_components:
|
|
||||||
if pc.price_index:
|
|
||||||
pricing_text += ' ' + pc.price_index.description
|
|
||||||
return pricing_text
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def report_fixing_rule(self):
|
def report_fixing_rule(self):
|
||||||
pricing_rule = ''
|
pricing_rule = ''
|
||||||
@@ -558,6 +549,15 @@ class SaleLine(metaclass=PoolMeta):
|
|||||||
|
|
||||||
pricing_rule = fields.Text("Pricing description")
|
pricing_rule = fields.Text("Pricing description")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def get_pricing_text(self):
|
||||||
|
pricing_text = ''
|
||||||
|
if self.price_components:
|
||||||
|
for pc in self.price_components:
|
||||||
|
if pc.price_index:
|
||||||
|
pricing_text += ' ' + pc.price_index.description
|
||||||
|
return pricing_text
|
||||||
|
|
||||||
@fields.depends('product')
|
@fields.depends('product')
|
||||||
def on_change_with_attribute_set(self, name=None):
|
def on_change_with_attribute_set(self, name=None):
|
||||||
if self.product and self.product.template and self.product.template.attribute_set:
|
if self.product and self.product.template and self.product.template.attribute_set:
|
||||||
|
|||||||
Reference in New Issue
Block a user