← Back to team overview

openerp-expert-accounting team mailing list archive

[Bug 560459] Re: Payment term Date computation needs attention!

 

Before applying that patch, you should take a look at this module:
http://bazaar.launchpad.net/~openerp-spain-team/openerp-
spain/5.0/files/head%3A/extra_addons/paydays/

That module was developed to solve just this kind of 'unfriendly'
behaviour.

Currently OpenERP calculates the next_date from the end of the current
month begining of the next month. If we use "-5" it means "five days
before the end of the current month", if we use "+5" it means "the fifth
day of the next month"; there is no way to say "the fifth day of this
month".

That module (from the Spanish localization) extends the payment terms
configuration to allow to select more than one payment date. So you may
say for example that a partner has as payment days the 10th and the 20th
of each month with just setting the 'payment days' to "15,20"; also, it
solves my previous "the fifth day of this month" example by just setting
the 'payment days' to "5".

Maybe the features of this module should be merged into the standard
payment term object, or at least the module might be ported to extra-
addons or addons (it's currently hosted on the openerp-spain branch).


P.D.:  Jay be aware that your patch might break things for a lot of people that already configured their payment terms the old way.

-- 
Payment term Date computation needs attention!
https://bugs.launchpad.net/bugs/560459
You received this bug notification because you are a member of OpenERP's
Accounting Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: In Progress

Bug description:
In computing next_date, add 1 month from source code, but you should be configurable, and it is not always well.

These can be configurable since the model: account.payment.term.line
adding a field: months