next_payment_date [account_payment_discount_extension]
Bug #639645 reported by
Thomas Dreiling
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openerp-openbig |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Calculation of next_payment_date in action_date_assign is based on current date instead of invoice date.
Changed in bigconsulting: | |
status: | New → Fix Released |
Changed in bigconsulting: | |
status: | New → Fix Released |
To post a comment you must log in.
You did not fully implement the patch posted! The "relativedelta" part has to be changed, too. Otherwise, I get the following error: thomdrei/ workspace/ addons/ account_ payment_ discount_ extension/ account_ payment_ discount. py", line 53, in action_date_assign payment_ date':( DateTime. strptime( inv.date_ invoice, '%Y-%m-%d') + relativedelta( days=delay) ).strftime( '%Y-%m- %d')}) pymodules/ python2. 6/dateutil/ relativedelta. py", line 247, in __radd__ RelativeDateTim e(days= delay)) .strftime( '%Y-%m- %d')"
File "/home/
self.write(cr, uid, [inv.id], {'next_
File "/usr/lib/
raise TypeError, "unsupported type for add operation"
TypeError: unsupported type for add operation
It has to be "DateTime.