[6.0RC1] ir_sequences not multicompany compatible

Bug #663977 reported by Omar (Pexego)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

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

Related branches

Omar (Pexego) (omar7r)
summary: - [6.0] ir.sequence get_id() isn't multicompany
+ [6.0RC1] ir_sequences not multicompany compatible
Changed in openobject-server:
importance: Undecided → High
milestone: none → 6.0
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

To be double-checked

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: High → Medium
milestone: 6.0 → 6.0-rc2
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed in trunk with revision 3055 <email address hidden>
Thanks for reporting!

Changed in openobject-server:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.