c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07959
[Bug 602188] Re: Account: wrong invoice number sequence for fiscal year in a certain case
Hello Numérigraphe,
I have tested in Trunk Addons3 branch as per scenario described and it works fine. In Version 6.0 we don't have invoice sequence field on Journal and so we are using Entry sequence only for the invoice too.
So it passes fiscal year id in context to get_id method when we post the move.
Thank you,
Mustufa (mra)
** Changed in: openobject-addons/trunk
Status: In Progress => Invalid
--
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:
Invalid
Status in OpenObject Addons 5.0 series:
Fix Released
Status in OpenObject Addons trunk series:
Invalid
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.