← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 663977] Re: [6.0RC1] ir_sequences not multicompany compatible

 

** Changed in: openobject-server
       Status: Confirmed => In Progress

-- 
[6.0RC1] ir_sequences not multicompany compatible
https://bugs.launchpad.net/bugs/663977
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: In Progress

Bug description:
Hi,

While testing the 6.0 RC1 version, we noticed that the sequences are not compatible with a multicompany setup.

In fact, the get() method of the ir.sequence openobject, updates any sequence with a given code, via get_id() which does not filter the sequence to be updated by company!

So, if you have two active sale order sequences (one for company A, one for company B), and one user from the company A creates a sale order, he may either get a number from sequence A or a number from sequence B in a random fashion (for example he may get sale order numbers like this: "A1", "B1", "A2", "B2"...).

The get_id() method should filter the sequence being updated by the user company (if no sequence found for that company, then it should search for a sequence with NULL company, like a global sequence).





References