set a on_change on invoice_date for calculate the Due date on supplier invoice
Bug #1125084 reported by
Damien D.
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 3 |
Bug Description
Hi all,
in invoice due date is left unchanged when you change the invoice date.
Example:
http://
login as admin
password kazacube
go to accounting > Suppliers > Supllier invoices
New
choose partner supplier
Due date is automatically and correctly set as current date + 30 days end of month (defined in partner form)
current date: 14 Feb 2013
invoice date: left blank
due date: 31 Mar 2013
Now try to change like this
invoice date: 10 oct 2012
force period: 10/2012
Bug: Due date is left unchanged to 31 Mar 2013 instead of 30 Nov 2012
I saw a post for this on 7.0 but nothing for 6.0
Thanks for your help,
Damien D.
To post a comment you must log in.
Hello Damian,
I have checked your scenario, but I think you might have a missed something...
Due date is changed base on the invoice date. If Invoice date is not available than due date set base on current date.
In your scenario, due date is set "31 Mar 2013" based on current date: "14 Feb 2013". after that action, set the invoice date as 10 oct 2012. but due date is still unchanged. Obvious It's not changed without any action. If you try "Validate" this Invoice than due date is changed. So would please try in this way.
Hope this will help for you.
Thanks and waiting for your reply!