diff --git a/README.md b/README.md index 0f645f071d7f..da34457a6578 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ addon | version | maintainers | summary [product_category_type](product_category_type/) | 16.0.1.0.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Add Type field on Product Categories to distinguish between parent and final categories [product_code_unique](product_code_unique/) | 16.0.1.0.1 | | Set Product Internal Reference as Unique [product_company_default](product_company_default/) | 16.0.1.0.0 | | Product Company Default -[product_cost_security](product_cost_security/) | 16.0.1.1.0 | [![sergio-teruel](https://github.com/sergio-teruel.png?size=30px)](https://github.com/sergio-teruel) [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Product cost security restriction view +[product_cost_security](product_cost_security/) | 16.0.1.2.0 | [![sergio-teruel](https://github.com/sergio-teruel.png?size=30px)](https://github.com/sergio-teruel) [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Product cost security restriction view [product_country_restriction](product_country_restriction/) | 16.0.1.0.0 | [![rousseldenis](https://github.com/rousseldenis.png?size=30px)](https://github.com/rousseldenis) | Allows to define product restrictions country based [product_dimension](product_dimension/) | 16.0.1.2.0 | | Product Dimension [product_expiry_configurable](product_expiry_configurable/) | 16.0.1.0.0 | | This model allows setting expiry times on category and to use the 'end_of_life' date for the computation of lot dates diff --git a/product_cost_security/README.rst b/product_cost_security/README.rst index 0ea592a5fb5f..b1ec91ec53f9 100644 --- a/product_cost_security/README.rst +++ b/product_cost_security/README.rst @@ -7,7 +7,7 @@ Product Cost Security !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:e0a447c05b96eb98d1209480f72fd5aaa45313571321d852e1d0d0d561d4c775 + !! source digest: sha256:b742bd17e19a4443630ab59ac73cd70854d0edd253fc71d1b9fd0027b8509be0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png @@ -54,6 +54,13 @@ To use this module you need to: #. You will not see the *Cost* field unless you follow the *Configuration* steps and get read permissions. #. 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 =========== diff --git a/product_cost_security/__manifest__.py b/product_cost_security/__manifest__.py index 203d8ea9b9d2..cc070d2c1e73 100644 --- a/product_cost_security/__manifest__.py +++ b/product_cost_security/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Product Cost Security", "summary": "Product cost security restriction view", - "version": "16.0.1.1.0", + "version": "16.0.1.2.0", "development_status": "Production/Stable", "maintainers": ["sergio-teruel", "rafaelbn", "yajo"], "category": "Product", diff --git a/product_cost_security/i18n/ar.po b/product_cost_security/i18n/ar.po index 66499a74b7f4..22d17f6bfcb3 100644 --- a/product_cost_security/i18n/ar.po +++ b/product_cost_security/i18n/ar.po @@ -17,17 +17,17 @@ msgstr "" "&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" "X-Generator: Weblate 4.3.2\n" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_cost -msgid "Access to product costs" -msgstr "الاطلاع على تكلفة المنتجات" - #. 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 @@ -41,11 +41,6 @@ msgid "" " Used to compute margins on sale orders." msgstr "" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_edit_cost -msgid "Modify product costs" -msgstr "" - #. module: product_cost_security #: model:ir.model,name:product_cost_security.model_product_template msgid "Product" @@ -66,6 +61,11 @@ msgstr "" 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 @@ -85,6 +85,9 @@ msgid "" "(Operation: %(operation)s)" msgstr "" +#~ msgid "Access to product costs" +#~ msgstr "الاطلاع على تكلفة المنتجات" + #~ msgid "Product Template" #~ msgstr "قالب المنتج" diff --git a/product_cost_security/i18n/ca.po b/product_cost_security/i18n/ca.po index 95d5f10ca162..c64df78ae317 100644 --- a/product_cost_security/i18n/ca.po +++ b/product_cost_security/i18n/ca.po @@ -16,17 +16,17 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.3.2\n" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_cost -msgid "Access to product costs" -msgstr "Accés als costos del producte" - #. 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 @@ -48,11 +48,6 @@ msgstr "" "compra (p. ex., ajust d'inventari).\n" " S'utilitza per calcular els marges de les comandes de venda." -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_edit_cost -msgid "Modify product costs" -msgstr "" - #. module: product_cost_security #: model:ir.model,name:product_cost_security.model_product_template msgid "Product" @@ -73,6 +68,11 @@ msgstr "" 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 @@ -92,5 +92,8 @@ msgid "" "(Operation: %(operation)s)" msgstr "" +#~ msgid "Access to product costs" +#~ msgstr "Accés als costos del producte" + #~ msgid "Product Template" #~ msgstr "Plantilla de producte" diff --git a/product_cost_security/i18n/es.po b/product_cost_security/i18n/es.po index 3d5269793b76..436a64044114 100644 --- a/product_cost_security/i18n/es.po +++ b/product_cost_security/i18n/es.po @@ -17,17 +17,17 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.17\n" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_cost -msgid "Access to product costs" -msgstr "Acceso a ver el coste de productos" - #. 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 "Coste" +#. 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 @@ -48,11 +48,6 @@ msgstr "" "compra (por ejemplo, ajuste de inventario).\n" " Se utiliza para calcular los márgenes de los pedidos de venta." -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_edit_cost -msgid "Modify product costs" -msgstr "Modificar los costes de los productos" - #. module: product_cost_security #: model:ir.model,name:product_cost_security.model_product_template msgid "Product" @@ -73,6 +68,11 @@ msgstr "Mixin de control de acceso al coste del producto" msgid "Product costs" msgstr "Costes del Producto" +#. 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 @@ -97,5 +97,11 @@ msgstr "" "\n" "(Operación: %(operation)s)" +#~ msgid "Access to product costs" +#~ msgstr "Acceso a ver el coste de productos" + +#~ msgid "Modify product costs" +#~ msgstr "Modificar los costes de los productos" + #~ msgid "Product Template" #~ msgstr "Plantilla de producto" diff --git a/product_cost_security/i18n/it.po b/product_cost_security/i18n/it.po index 29486bd3b1a8..d591501b0eb3 100644 --- a/product_cost_security/i18n/it.po +++ b/product_cost_security/i18n/it.po @@ -16,17 +16,17 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 4.17\n" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_cost -msgid "Access to product costs" -msgstr "Accesso ai costi prodotto" - #. 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 "Costo" +#. 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 @@ -47,11 +47,6 @@ msgstr "" "è noto (es. rettifiche di inventario).\n" " Utilizzato per calcolare i margini negli ordini di vendita." -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_edit_cost -msgid "Modify product costs" -msgstr "Modifica costi prodotto" - #. module: product_cost_security #: model:ir.model,name:product_cost_security.model_product_template msgid "Product" @@ -72,6 +67,11 @@ msgstr "Mixin controllo accesso costo prodotto" msgid "Product costs" msgstr "Costi prodotto" +#. 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 @@ -95,3 +95,9 @@ msgstr "" "sistema.\n" "\n" "(Operazione: %(operation)s)" + +#~ msgid "Access to product costs" +#~ msgstr "Accesso ai costi prodotto" + +#~ msgid "Modify product costs" +#~ msgstr "Modifica costi prodotto" diff --git a/product_cost_security/i18n/product_cost_security.pot b/product_cost_security/i18n/product_cost_security.pot index 4a609898beac..073627a62b72 100644 --- a/product_cost_security/i18n/product_cost_security.pot +++ b/product_cost_security/i18n/product_cost_security.pot @@ -13,17 +13,17 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_cost -msgid "Access to product costs" -msgstr "" - #. 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 @@ -34,11 +34,6 @@ msgid "" " Used to compute margins on sale orders." msgstr "" -#. module: product_cost_security -#: model:res.groups,name:product_cost_security.group_product_edit_cost -msgid "Modify product costs" -msgstr "" - #. module: product_cost_security #: model:ir.model,name:product_cost_security.model_product_template msgid "Product" @@ -59,6 +54,11 @@ msgstr "" 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 diff --git a/product_cost_security/readme/ROADMAP.rst b/product_cost_security/readme/ROADMAP.rst new file mode 100644 index 000000000000..2b20ba2b55b5 --- /dev/null +++ b/product_cost_security/readme/ROADMAP.rst @@ -0,0 +1,3 @@ +* 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*. diff --git a/product_cost_security/security/product_cost_security.xml b/product_cost_security/security/product_cost_security.xml index bbdbc579daba..48d5130de235 100644 --- a/product_cost_security/security/product_cost_security.xml +++ b/product_cost_security/security/product_cost_security.xml @@ -10,7 +10,7 @@ add fields to views with this group defined as field attribute. --> - Access to product costs + Read @@ -18,7 +18,7 @@ Only users within this group can edit costs. --> - Modify product costs + Edit Product Cost Security !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:e0a447c05b96eb98d1209480f72fd5aaa45313571321d852e1d0d0d561d4c775 +!! source digest: sha256:b742bd17e19a4443630ab59ac73cd70854d0edd253fc71d1b9fd0027b8509be0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

It adds two security groups, one for viewing the product cost price, and the other for @@ -376,11 +376,12 @@

Product Cost Security