-
-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by dreispt
- Loading branch information
Showing
24 changed files
with
1,448 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
===================== | ||
Product Cost Security | ||
===================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:b742bd17e19a4443630ab59ac73cd70854d0edd253fc71d1b9fd0027b8509be0 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Production/Stable | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github | ||
:target: https://github.com/OCA/product-attribute/tree/17.0/product_cost_security | ||
:alt: OCA/product-attribute | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_cost_security | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
It adds two security groups, one for viewing the product cost price, and | ||
the other for editing it. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
To use this module you need to: | ||
|
||
1. Go to a *Setting > Users and Companies > Users*. | ||
2. Edit a user. | ||
3. Grant some access level using the *Product costs* dropdown. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module you need to: | ||
|
||
1. Go to product form view. | ||
2. You will not see the *Cost* field unless you follow the | ||
*Configuration* steps and get read permissions. | ||
3. You will not be able to edit it unless you are granted write | ||
permissions. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
- To edit product costs, apart from having *Product costs / Edit* | ||
permission, you need to have some other permission that lets you edit | ||
products, such as *Sales / Administrator* or *Inventory / | ||
Administrator*. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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 <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_cost_security%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
|
||
* Tecnativa | ||
|
||
Contributors | ||
------------ | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Sergio Teruel | ||
- David vidal | ||
|
||
- Watthanun Khorchai <watthanun_t@hotmail.com> | ||
- Carlos Lopez <celm1990@gmail.com> | ||
- `Onestein <https://www.onestein.eu>`__: | ||
|
||
- Anjeel Haria | ||
|
||
- Jairo Llopis (`Moduon <https://www.moduon.team>`__) | ||
- `Binhex <https://www.binhex.cloud>`__: | ||
|
||
- Mario Luis <m.luis@binhex.cloud> | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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. | ||
|
||
.. |maintainer-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px | ||
:target: https://github.com/sergio-teruel | ||
:alt: sergio-teruel | ||
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px | ||
:target: https://github.com/rafaelbn | ||
:alt: rafaelbn | ||
.. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px | ||
:target: https://github.com/yajo | ||
:alt: yajo | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-sergio-teruel| |maintainer-rafaelbn| |maintainer-yajo| | ||
|
||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_cost_security>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2018 Tecnativa - Sergio Teruel | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Product Cost Security", | ||
"summary": "Product cost security restriction view", | ||
"version": "17.0.1.0.0", | ||
"development_status": "Production/Stable", | ||
"maintainers": ["sergio-teruel", "rafaelbn", "yajo"], | ||
"category": "Product", | ||
"website": "https://github.com/OCA/product-attribute", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": ["product"], | ||
"data": ["security/product_cost_security.xml", "views/product_views.xml"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_cost_security | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-05-28 07:48+0000\n" | ||
"Last-Translator: Osoul <baruni@osoul.ly>\n" | ||
"Language-Team: none\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_product__standard_price | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_template__standard_price | ||
msgid "Cost" | ||
msgstr "التكلفة" | ||
|
||
#. module: product_cost_security | ||
#: model:res.groups,name:product_cost_security.group_product_edit_cost | ||
msgid "Edit" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model.fields,help:product_cost_security.field_product_product__standard_price | ||
#: model:ir.model.fields,help:product_cost_security.field_product_template__standard_price | ||
msgid "" | ||
"In Standard Price & AVCO: value of the product (automatically computed in " | ||
"AVCO).\n" | ||
" In FIFO: value of the next unit that will leave the stock " | ||
"(automatically computed).\n" | ||
" Used to value the product when the purchase cost is not known (e.g. " | ||
"inventory adjustment).\n" | ||
" Used to compute margins on sale orders." | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model,name:product_cost_security.model_product_template | ||
msgid "Product" | ||
msgstr "المنتج" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model,name:product_cost_security.model_product_product | ||
msgid "Product Variant" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model,name:product_cost_security.model_product_cost_security_mixin | ||
msgid "Product cost access control mixin" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.module.category,name:product_cost_security.module_category | ||
msgid "Product costs" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:res.groups,name:product_cost_security.group_product_cost | ||
msgid "Read" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_cost_security_mixin__user_can_update_cost | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_product__user_can_update_cost | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_template__user_can_update_cost | ||
msgid "User Can Update Cost" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#. odoo-python | ||
#: code:addons/product_cost_security/models/product_cost_security_mixin.py:0 | ||
#, python-format | ||
msgid "" | ||
"You do not have enough rights to access the fields \"%(fields)s\" on " | ||
"%(document_kind)s (%(document_model)s). Please contact your system " | ||
"administrator.\n" | ||
"\n" | ||
"(Operation: %(operation)s)" | ||
msgstr "" | ||
|
||
#~ msgid "Access to product costs" | ||
#~ msgstr "الاطلاع على تكلفة المنتجات" | ||
|
||
#~ msgid "Product Template" | ||
#~ msgstr "قالب المنتج" | ||
|
||
#~ msgid "Display Name" | ||
#~ msgstr "الاسم المعروض" | ||
|
||
#~ msgid "ID" | ||
#~ msgstr "المُعرف" | ||
|
||
#~ msgid "Last Modified on" | ||
#~ msgstr "آخر تعديل في" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_cost_security | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2022-04-22 10:05+0000\n" | ||
"Last-Translator: pablontura <pablo.ruiz@qubiq.es>\n" | ||
"Language-Team: none\n" | ||
"Language: ca\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_product__standard_price | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_template__standard_price | ||
msgid "Cost" | ||
msgstr "Cost" | ||
|
||
#. module: product_cost_security | ||
#: model:res.groups,name:product_cost_security.group_product_edit_cost | ||
msgid "Edit" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model.fields,help:product_cost_security.field_product_product__standard_price | ||
#: model:ir.model.fields,help:product_cost_security.field_product_template__standard_price | ||
#, fuzzy | ||
msgid "" | ||
"In Standard Price & AVCO: value of the product (automatically computed in " | ||
"AVCO).\n" | ||
" In FIFO: value of the next unit that will leave the stock " | ||
"(automatically computed).\n" | ||
" Used to value the product when the purchase cost is not known (e.g. " | ||
"inventory adjustment).\n" | ||
" Used to compute margins on sale orders." | ||
msgstr "" | ||
"A Preu estàndard i AVCO: valor del producte (calculat automàticament en " | ||
"AVCO).\n" | ||
" En FIFO: valor de la propera unitat que sortirà de l'estoc " | ||
"(calculat automàticament).\n" | ||
" S'utilitza per valorar el producte quan no es coneix el cost de " | ||
"compra (p. ex., ajust d'inventari).\n" | ||
" S'utilitza per calcular els marges de les comandes de venda." | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model,name:product_cost_security.model_product_template | ||
msgid "Product" | ||
msgstr "Producte" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model,name:product_cost_security.model_product_product | ||
msgid "Product Variant" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model,name:product_cost_security.model_product_cost_security_mixin | ||
msgid "Product cost access control mixin" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.module.category,name:product_cost_security.module_category | ||
msgid "Product costs" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:res.groups,name:product_cost_security.group_product_cost | ||
msgid "Read" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_cost_security_mixin__user_can_update_cost | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_product__user_can_update_cost | ||
#: model:ir.model.fields,field_description:product_cost_security.field_product_template__user_can_update_cost | ||
msgid "User Can Update Cost" | ||
msgstr "" | ||
|
||
#. module: product_cost_security | ||
#. odoo-python | ||
#: code:addons/product_cost_security/models/product_cost_security_mixin.py:0 | ||
#, python-format | ||
msgid "" | ||
"You do not have enough rights to access the fields \"%(fields)s\" on " | ||
"%(document_kind)s (%(document_model)s). Please contact your system " | ||
"administrator.\n" | ||
"\n" | ||
"(Operation: %(operation)s)" | ||
msgstr "" | ||
|
||
#~ msgid "Access to product costs" | ||
#~ msgstr "Accés als costos del producte" | ||
|
||
#~ msgid "Product Template" | ||
#~ msgstr "Plantilla de producte" |
Oops, something went wrong.