Odoo Help

Welcome!

This community 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.

1

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

By
E.M.
on 1/31/16, 3:55 PM 396 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?


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

0
Nilim
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

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

Hope this helps.

 Cheers!!

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

E.M.
on 2/4/16, 4:29 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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