[trunk/7.0] multicompany: error message when creating a stock.move
Bug #1182111 reported by
Alexandre Fayolle - camptocamp
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Undecided
|
Alexandre Fayolle - camptocamp |
Bug Description
Steps to reproduce:
* log on a 7.0 instance on runbot as admin
* create a new user with login "test_warehouse" belonging to a child company of "you company", make him warehouse manager, let him access only that company (don't forget to change his password)
* log out, log on as test_warehouse
* go the Warehouse > internal pickings and click on create
* add a new item
What I get:
* an unexpected error message box, which I can remove (by clicking "OK") but which is *very* annoying when it shows up 50x each day
See screenshot.
This error is caused by trying to get the name of a stock location on which the user has no access.
Related branches
lp:~camptocamp/openobject-addons/7.0-fix-1182111
- Martin Trigaux (OpenERP) (community): Needs Fixing
- Joël Grand-Guillaume @ camptocamp (community): Approve (code review, no tests)
-
Diff: 321 lines (+174/-20)8 files modifiedmrp/__openerp__.py (+1/-0)
mrp/mrp.py (+15/-5)
mrp/test/multicompany.yml (+20/-0)
stock/__openerp__.py (+1/-0)
stock/stock.py (+54/-12)
stock/stock_demo.xml (+10/-0)
stock/test/multicompany.yml (+68/-0)
stock/wizard/stock_fill_inventory.py (+5/-3)
lp:~camptocamp/ocb-addons/ocb-7.0-fix-1182111-AFE
- Holger Brunn (Therp): Approve (code review)
- Joël Grand-Guillaume @ camptocamp: Approve (code review, no test)
-
Diff: 321 lines (+174/-20)8 files modifiedmrp/__openerp__.py (+1/-0)
mrp/mrp.py (+15/-5)
mrp/test/multicompany.yml (+20/-0)
stock/__openerp__.py (+1/-0)
stock/stock.py (+54/-12)
stock/stock_demo.xml (+10/-0)
stock/test/multicompany.yml (+68/-0)
stock/wizard/stock_fill_inventory.py (+5/-3)
lp:~openerp-dev/openobject-addons/7.0-fix-1182111
- Martin Trigaux (OpenERP): Pending requested
-
Diff: 296 lines (+227/-7)7 files modifiedmrp/tests/__init__.py (+28/-0)
mrp/tests/test_multicompany.py (+50/-0)
stock/stock.py (+14/-4)
stock/stock_demo.xml (+10/-0)
stock/tests/__init__.py (+28/-0)
stock/tests/test_multicompany.py (+92/-0)
stock/wizard/stock_fill_inventory.py (+5/-3)
lp:~camptocamp/ocb-addons/6.1-fix-1182111-lep
- Holger Brunn (Therp): Approve (code review)
- Romain Deheele - Camptocamp (community): Approve (code review)
- Stefan Rijnhart (Opener): Approve
-
Diff: 130 lines (+78/-2)4 files modifiedstock/__openerp__.py (+1/-0)
stock/stock.py (+18/-2)
stock/stock_demo.xml (+9/-0)
stock/test/multicompany.yml (+50/-0)
summary: |
- 7.0 multicompany: error message when creating a stock.move + [trunk/7.0] multicompany: error message when creating a stock.move |
tags: | added: maintenance |
tags: | added: warehouse |
Changed in openobject-addons: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Further investigation shows that the methods _default_ location_ destination and _default_ location_ source are at fault : these return a company independent location found with a xml_id and this location is related to base.main_company on which my user has no read access.