Account: wrong invoice number sequence for fiscal year in a certain case
Bug #602188 reported by
Numérigraphe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
5.0 |
Fix Released
|
Undecided
|
Unassigned | |||
Trunk |
Invalid
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
Using 5.0.10, there is a case where the wrong sequence is picked when you create an invoice.
- install accounts
- in the sequence for invoices (call it A), enter a new sequence for invoices in the current fiscal year (call it B)
- duplicate an invoice, create it in the current fiscal year
=> you should get a number from B, but you get a number from sequence A.
That's because the fiscal year is not passed in the context of sequence.get_id() in
action_number().
From the current code I gather that it works only if you set the sequence on the journal, but it should work without that.
Lionel.
Related branches
lp:~numerigraphe/openobject-addons/bug602188-trunk
- OpenERP Core Team: Pending requested
-
Diff: 177 lines (+89/-19)5 files modifiedaccount/__openerp__.py (+1/-0)
account/invoice.py (+14/-6)
account/sequence.py (+25/-13)
account/sequence_view.xml (+4/-0)
account/test/account_sequence_test.yml (+45/-0)
lp:~numerigraphe/openobject-addons/5.0-unittest
Superseded
for merging
into
lp:openobject-addons/5.0
- OpenERP Core Team: Pending requested
-
Diff: 69 lines (+54/-0)2 files modifiedaccount/__terp__.py (+1/-0)
account/test/sequence_bug602188_test.xml (+53/-0)
Changed in openobject-addons: | |
status: | Fix Released → In Progress |
Changed in openobject-addons: | |
milestone: | none → 5.0.12 |
Changed in openobject-addons: | |
status: | Fix Released → Fix Committed |
To post a comment you must log in.
Tentative fix committed to lp:~numerigraphe/openobject-addons/dev-5.0 in <email address hidden> .
Lionel