To be double-checked

** Changed in: openobject-server
   Importance: High => Medium

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
    Milestone: 6.0 => 6.0-rc2

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
[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: Confirmed

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).



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to