[FIX] sale: conflicting method names

Two methods on sale.order model had the same signature, i.e. _onchange_commitment_date.
This commit renames one of the two methods to make sure both methods are correctly
called.
This commit is contained in:
Victor Feyens
2021-06-21 16:26:06 +00:00
parent d8369685f8
commit 1f14da4480
+1 -1
View File
@@ -329,7 +329,7 @@ class SaleOrder(models.Model):
order.expected_date = False
@api.onchange('expected_date')
def _onchange_commitment_date(self):
def _onchange_expected_date(self):
self.commitment_date = self.expected_date
@api.depends('transaction_ids')