From 1f14da4480a23571e945bcfd9633b9c5f6714ff9 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Mon, 21 Jun 2021 16:26:01 +0000 Subject: [PATCH] [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. --- addons/sale/models/sale_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/models/sale_order.py b/addons/sale/models/sale_order.py index bbb3a3403a7..54cad9531e7 100644 --- a/addons/sale/models/sale_order.py +++ b/addons/sale/models/sale_order.py @@ -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')