c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06639
[Bug 602188] Re: Account: wrong invoice number sequence for fiscal year in a certain case
** Changed in: openobject-addons/trunk
Milestone: None => 6.0-rc2
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/602188
Title:
Account: wrong invoice number sequence for fiscal year in a certain case
Status in OpenObject Addons Modules:
Confirmed
Status in OpenObject Addons 5.0 series:
Fix Released
Status in OpenObject Addons trunk series:
Confirmed
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.