Odoo Help


Payment term 90 days and payment first occurence of day 20, not possible with Odoo v8?

on 1/31/16, 3:55 PM 1,004 views

I would like to configure a payment term of 90 days since invoice date and day 20.

This means that if invoice is 20/12/2015, then:

20/12/2015 + 90 days = 19/03/2016, so due date would be 20/03/2016.

But if configured 90 days + day 20 Odoo will go for day 20th of the next month (20/04/2016).

Is it possible to configure due date to be 20/03 in this case?

Rubén Cabrera
On 9/6/16, 9:48 AM

The problem is in the class account_payment_term from the file account.py in the account addon. There is a line in the method copute() that says:

next_date += relativedelta(day=line.days2, months=1)

If you change months to 0, it might be wrong when the amount of days in the "days" field results in a smaller day date than the one specified in days2.

I tried to post a link to the module we created to solve it, but it seems I'm not allowed to do so.

On 2/4/16, 7:31 AM

 Hi E.m.,

W.r.t your query I have gone through it and tried to replicate it. Few recommendations which I would like to suggest are :-

1) By default in Odoo if we set Day of the Month as positive it gives the day of the next month. And this is what is happening in your case.This scan be done by following Accounting>Configuration>Miscellaneous>Payment Terms

 2) My recommendation would be to set Day of the Month as Zero, if you do so it would be calculate for net days. By doing so I hope you issue might get resolved

3) Also refer to below link for more info on the payment terms


Hope this helps.


Question is how to mix net days + next fixed day (which can be same month or next month depending on when net days calculation falls in the calendar and which fixed date has been selected).

on 2/4/16, 4:29 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/31/16, 3:55 PM
Seen: 1004 times
Last updated: 9/6/16, 9:48 AM