7.0 multicompany: error message when changing the stock level through the product form view
Bug #1200194 reported by
Alexandre Fayolle - camptocamp
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Similar to lp:1182111
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 > products, browse to the inventory tab
* click on "update" quantity on hand
What I get:
* an unexpected error message box, which I can remove (by clicking "OK") but which is *very* annoying and confusing when it shows up
This error is caused by trying to get the name of a stock location on which the user has no access.
Related branches
lp://staging/~openerp-dev/openobject-addons/7.0-staging-mat
- Martin Trigaux (OpenERP): Pending requested
-
Diff: 129 lines (+26/-8)6 files modifiedaccount/project/wizard/account_analytic_chart_view.xml (+5/-5)
account/report/account_financial_report.py (+1/-0)
account/report/account_financial_report.rml (+6/-1)
account/wizard/account_financial_report.py (+3/-2)
account/wizard/account_report_common.py (+1/-0)
project/project.py (+10/-0)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
no longer affects: | ocb-addons |
To post a comment you must log in.
Hello,
As for lp:1178876, I have merged a fix making sure the default stock location exists and the user has read access to it.
This should do the trick for your problem (I agree, not blocking but very annoying).
We could do something smarted by proposing another location by default. However we can not select any location (would not make sense), we would need another field on the company (default_ location_ id or something like this) but this be potentials improvements for next versions.
revno: 9329
revision-id: <email address hidden>
Regards