Skip to Content
Menu
v 11.0 v 12.0 Third Party 441
Download for v 12.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 18
Technical Name product_cost_security
LicenseAGPL-3
Websitehttps://github.com/OCA/product-attribute
Versions 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!

Product Cost Security

Production/Stable License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

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:

  1. Go to a Setting > Users and Companies > Users.
  2. Select a user and add “Access to product costs” group.

Usage

To use this module you need to:

  1. 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

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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:

sergio-teruel

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
isuue
by
mahmoud.mekawy1@gmail.com
on 1/16/20, 5:47 PM

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)