Remove unused company from depends for on_change_with of sale point's total
This commit is contained in:
1 parent
1ebe99e62d
commit
628cf27546
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user