main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 5f744ec25c - Show all commits

View File

@@ -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 = ''
@@ -558,6 +549,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):
if self.product and self.product.template and self.product.template.attribute_set: