09.03.26
This commit is contained in:
@@ -278,15 +278,6 @@ class Sale(metaclass=PoolMeta):
|
||||
else:
|
||||
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
|
||||
def report_fixing_rule(self):
|
||||
pricing_rule = ''
|
||||
@@ -557,6 +548,15 @@ class SaleLine(metaclass=PoolMeta):
|
||||
)
|
||||
|
||||
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')
|
||||
def on_change_with_attribute_set(self, name=None):
|
||||
|
||||
Reference in New Issue
Block a user