Merge lp:~camptocamp/ocb-addons/7.0-fix-lp-1210195-RDE into lp:ocb-addons
Proposed by
Romain Deheele - Camptocamp
Status: | Rejected |
---|---|
Rejected by: | Stefan Rijnhart (Opener) |
Proposed branch: | lp:~camptocamp/ocb-addons/7.0-fix-lp-1210195-RDE |
Merge into: | lp:ocb-addons |
Diff against target: |
45 lines (+12/-5) 2 files modified
procurement/procurement.py (+3/-5) stock/stock.py (+9/-0) |
To merge this branch: | bzr merge lp:~camptocamp/ocb-addons/7.0-fix-lp-1210195-RDE |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexandre Fayolle - camptocamp | code review, test | Needs Fixing | |
Review via email: mp+181227@code.launchpad.net |
Description of the change
Hello,
This branch fixes bug #1210195:access denied when a subsidiary company's user tries to create a reordering rule(multicompany context)
https:/
Romain
To post a comment you must log in.
Unmerged revisions
- 9414. By Romain Deheele - Camptocamp
-
[FIX] fix bug #1210195:fix access denied when a subsidiary company's user tries to create a reordering rule(multicompany context)
This fix breaks the database creation from scratch.
2013-09-26 07:53:54,261 8361 INFO openerp_prod_doremi openerp. modules. loading: module procurement: loading stock_orderpoin t.xml tools.convert: Parse error in /home/afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ addons/ procurement/ stock_orderpoin t.xml:7: warehouse_ orderpoint_ 0" model=" stock.warehouse .orderpoint" > max_qty" >25.0</ field> min_qty" >5.0</field> product_ uom_dozen" /> stock.warehouse " name="warehouse_id" search="[]"/> product. product" name="product_id" ref="product. product_ product_ 36"/> stock_location_ stock"/ > afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ server/ openerp/ tools/convert. py", line 847, in parse _tags[rec. tag](self. cr, rec, n) afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ server/ openerp/ tools/convert. py", line 814, in _tag_record get('ir. model.data' )._update( cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate (data_node) , noupdate= self.isnoupdate (data_node) , mode=self.mode, context=rec_context ) afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ server/ openerp/ addons/ base/ir/ ir_model. py", line 963, in _update create( cr, uid, values, context=context) afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ server/ openerp/ osv/orm. py", line 4318, in create missing_ default_ values( cr, user, vals, context) afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ server/ openerp/ osv/orm. py", line 2487, in _add_missing_ default_ values get(cr, uid, missing_defaults, context) afayolle/ work/customers/ doremi/ openerp_ buildout_ prod/parts/ addons/ procurement/ procurement. py", line 554, in default_get get('stock. warehouse' ).browse( cr, uid, res['warehouse_ id'], context)
2013-09-26 07:53:54,321 8361 ERROR openerp_prod_doremi openerp.
<record id="stock_
<field name="product_
<field name="product_
<field model="product.uom" name="product_uom" ref="product.
<field model="
<field model="
<field name="location_id" ref="stock.
</record>
Traceback (most recent call last):
File "/home/
self.
File "/home/
id = self.pool.
File "/home/
res_id = model_obj.
File "/home/
vals = self._add_
File "/home/
defaults = self.default_
File "/home/
warehouse = self.pool.
KeyError: 'warehouse_id'