[7.0] Access control: allow create, disable write
This bug report was converted into a question: question #214854: [7.0] Access control: allow create, disable write.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In 6.1, I am able to restrict the user's access privileges, i.e. allow product creation, disallow product modification
Implementation steps in 6.1
1. Install CRM, Sales module
2. Add test user
3. Settings-
4. Settings-
5. Check "create permission" for product.product sale use
6. Check "create permission" for product.template sale use
7. Add new access rights based on model "stock.
8. Check "read permission" for Minimum Inventory Rule
9. Save
With these steps, the test user is able to create products but unable to edit existing products.
However, when I try to follow these steps in 7.0, I am unable to find module "stock.
2012-11-21 00:38:45,785 2234 WARNING None openerp.
2012-11-21 00:38:45,786 2234 ERROR None openerp.netsvc: Access Denied
Sorry, you are not allowed to modify this document. Only users with the following access level are currently allowed to do that:
- Sales/Manager
(Document model: product.product)
Traceback (most recent call last):
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
raise except_
except_osv: ('Access Denied', u'Sorry, you are not allowed to modify this document. Only users with the following access level are currently allowed to do that:\n- Sales/Manager\
Changed in openobject-addons: | |
status: | New → Invalid |
Hello Li Wee,
For that you must have to assign the write's rights to your user then you can successfully create the product.
It's not a bug cause its our Framework architecture, when ever you are going to create any of the record then write method will automatically called.
It's not a bug rather than a questions to I am converting it you can see the answer on question.
Thanks for the understanding!