This question has been flagged
3 Replies
4942 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?


Avatar
Discard
Best Answer

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.

Avatar
Discard
Best Answer

 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

\https://doc.odoo.com/6.1/book/3/3_9/payment_terms/

Hope this helps.

 Cheers!!

Avatar
Discard
Author

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).