Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

Forward Port of #34433 to 12.0 #330

Closed luistorresm closed 5 years ago

luistorresm commented 5 years ago

When is created a refund from an invoice, the payment term its cleans, but not the date due.

In the next case:

  1. Create an invoice with date 05/26/2019, with payment term "30 days".
  2. Create an invoice refund for the invoice in 1, with the same date.

In this case, the payment term in the refund is empty, but the date_due is the same that in the invoice.

With this change, the date due in the refund is the same that in the refund date.

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr