Product Cost Security
by Tecnativa https://github.com/OCA/product-attribute , Odoo Community Association (OCA) https://github.com/OCA/product-attributeAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 18 |
Technical Name |
product_cost_security |
License | AGPL-3 |
Website | https://github.com/OCA/product-attribute |
Versions | 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 |
Product Cost Security
Adds a security group for product cost price field. Only users with this group can view this field.
Table of contents
Configuration
To use this module you need to:
- Go to a Setting > Users and Companies > Users.
- Select a user and add “Access to product costs” group.
Usage
To use this module you need to:
- Go to product form view logged with this user and you will see the standard_price field.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Tecnativa
Contributors
- Sergio Teruel <sergio.teruel@tecnativa.com>
Maintainers
This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/product-attribute project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
isuue
Dear Sir, I tested this module on my database and your demo server also, but I got this message every time I tried to open PoS session. only when I restrict user from cost feature? ---------- Traceback (most recent call last): File "/.repo_requirements/odoo/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/.repo_requirements/odoo/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/.repo_requirements/odoo/odoo/tools/pycompat.py", line 87, in reraise raise value File "/.repo_requirements/odoo/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/.repo_requirements/odoo/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/.repo_requirements/odoo/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/.repo_requirements/odoo/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/.repo_requirements/odoo/odoo/http.py", line 941, in __call__ return self.method(*args, **kw) File "/.repo_requirements/odoo/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File "/home/odoo/OCB-12.0/addons/web/controllers/main.py", line 962, in call_kw return self._call_kw(model, method, args, kwargs) File "/home/odoo/OCB-12.0/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/.repo_requirements/odoo/odoo/api.py", line 755, in call_kw return _call_kw_model(method, model, args, kwargs) File "/.repo_requirements/odoo/odoo/api.py", line 728, in _call_kw_model result = method(recs, *args, **kwargs) File "/.repo_requirements/odoo/odoo/models.py", line 4595, in search_read result = records.read(fields) File "/.repo_requirements/odoo/odoo/models.py", line 2763, in read fields = self.check_field_access_rights('read', fields) File "/.repo_requirements/odoo/odoo/models.py", line 2743, in check_field_access_rights + ' - ({} {}, {} {})'.format(_('User:'), self._uid, _('Fields:'), ', '.join(invalid_fields)) odoo.exceptions.AccessError: ('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Product, Operation: read) - (User: 2, Fields: standard_price)', None)