From 3678cffcf940f699b29630c3ac3f5427a3cdf9f7 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 18 Sep 2017 16:07:50 +0530 Subject: [PATCH] [FIX] account: due date On an invoice: - Select a partner with payment term defined => due date D1 is set - Change to a partner withour payment term defined The due date D1 is kept. opw-772063 --- addons/account/models/account_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index c56ea11333b..8d73a1f5c85 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -505,6 +505,7 @@ class AccountInvoice(models.Model): self.account_id = account_id self.payment_term_id = payment_term_id + self.date_due = False self.fiscal_position_id = fiscal_position if type in ('in_invoice', 'out_refund'):