sequence might use a child company's sequence by error under certain circumstances
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) | Status tracked in Trunk | |||||
6.0 |
Confirmed
|
Low
|
OpenERP Publisher's Warranty Team | |||
Trunk |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
On ~openerp/
"rev 3460 : [MERGE] Merged ILA's branch for the fix of correction in get_id() of ir_sequence to allow multi-company feature"
It's does'nt work if you use multi-company feature...
Now the sql query select every sequences for all companies (for the object) order by company_id, but there is a cr.dictfetchone() after sql response...
For example, when you create a sale_order (or any other objects), the sequence returned is the for the first company_id found.
However we need to have the specific sequence of the active user's company .
So the code of ir_sequence.py before rev 3460 works fine with multi-company
ir_sequence.py, line 78 rev 3460:
- company_id = self.pool.
+ company_ids = self.pool.
Related branches
- Olivier Dony (Odoo): Approve
- Vo Minh Thu: Pending requested
-
Diff: 19 lines (+8/-1)1 file modifiedopenerp/addons/base/ir/ir_sequence.py (+8/-1)
summary: |
- [6.0] ir_sequence does'nt work with multi_company + sequence might use a child company's sequence by error under certain + circumstances |
Hello,
I have checked your issue with latest 6.0 and all are working fine.
And the sequence are generated properly for multi-company.
For more reference I have attached a video so would you please check it and notify us where you faced the problem.
Thanks and waiting for your reply!