[trunk] Can't confirm invoices when using sequences journal sequences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On trunk the invoices action_number method fails when using journal sequences:
The API of the ir.sequence.get_id method has changed on trunk and now requires the test paremeter to be 'code' or 'id':
def get_id(self, cr, uid, sequence_id, test='id', context=None):
assert test in ('code','id')
But on account /invoice.py the old API is used (test parameter is "id=%s"):
number = self.pool.
It should be like this instead:
number = self.pool.
By the way, we should take the opportunity and fix also this bug:
https:/
and this bug:
https:/
Both being related with the invoices sequences.
affects: | openobject-server → openobject-addons |
I'm adding a patch that solves bug 559094, bug 509204 and bug 507454 on the trunk version. (Note: based on previous work from Ferdinand @ ChriCar)
Can somebody give it a look (and apply it on the trunk)?