[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
This commit is contained in:
Nicolas Martinelli
2017-09-19 10:17:38 +02:00
parent 875dd9221f
commit 3678cffcf9
+1
View File
@@ -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'):