Remove unused company from depends for on_change_with of sale point's total

This commit is contained in:
Cédric Krier committed 2026-07-31 15:57:15 +02:00
1 parent 1ebe99e62d
commit 628cf27546
1 file changed
+1 -1
+1 -1
View File
@@ -247,7 +247,7 @@ class POSSale(Workflow, ModelSQL, ModelView, TaxableMixin, ChatMixin):
def on_change_with_total_tax(self, name=None):
return sum(line.tax_amount for line in self.lines)
@fields.depends('company', 'lines')
@fields.depends('lines')
def on_change_with_total(self, name=None):
return sum(line.gross_amount for line in self.lines)