Skip to content

Commit

Permalink
[IMP] product_cost_security: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mario committed Apr 29, 2024
1 parent c7d4c54 commit 458ecb0
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 64 deletions.
57 changes: 30 additions & 27 deletions product_cost_security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ Product Cost Security
: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/16.0/product_cost_security
: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-16-0/product-attribute-16-0-product_cost_security
: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=16.0
: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.
It adds two security groups, one for viewing the product cost price, and
the other for editing it.

**Table of contents**

Expand All @@ -41,62 +41,65 @@ Configuration

To use this module you need to:

#. Go to a *Setting > Users and Companies > Users*.
#. Edit a user.
#. Grant some access level using the *Product costs* dropdown.
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:

#. Go to product form view.
#. 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.
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*.
- 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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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>`_:
- `Tecnativa <https://www.tecnativa.com>`__:

* Sergio Teruel
* David vidal
- Sergio Teruel
- David vidal

* Watthanun Khorchai <watthanun_t@hotmail.com>
* Carlos Lopez <celm1990@gmail.com>
* `Onestein <https://www.onestein.eu>`_:
- Watthanun Khorchai <watthanun_t@hotmail.com>
- Carlos Lopez <celm1990@gmail.com>
- `Onestein <https://www.onestein.eu>`__:

* Anjeel Haria
- Anjeel Haria

* Jairo Llopis (`Moduon <https://www.moduon.team>`__)
- Jairo Llopis (`Moduon <https://www.moduon.team>`__)

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -122,6 +125,6 @@ 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/16.0/product_cost_security>`_ project on GitHub.
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.
3 changes: 3 additions & 0 deletions product_cost_security/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
5 changes: 5 additions & 0 deletions product_cost_security/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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.
5 changes: 0 additions & 5 deletions product_cost_security/readme/CONFIGURE.rst

This file was deleted.

8 changes: 8 additions & 0 deletions product_cost_security/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- [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))
12 changes: 0 additions & 12 deletions product_cost_security/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
It adds two security groups, one for viewing the product cost price, and the other for
editing it.
It adds two security groups, one for viewing the product cost price, and
the other for editing it.
4 changes: 4 additions & 0 deletions product_cost_security/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- 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*.
3 changes: 0 additions & 3 deletions product_cost_security/readme/ROADMAP.rst

This file was deleted.

7 changes: 7 additions & 0 deletions product_cost_security/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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.
5 changes: 0 additions & 5 deletions product_cost_security/readme/USAGE.rst

This file was deleted.

24 changes: 14 additions & 10 deletions product_cost_security/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -368,9 +369,9 @@ <h1 class="title">Product Cost Security</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b742bd17e19a4443630ab59ac73cd70854d0edd253fc71d1b9fd0027b8509be0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/product-attribute/tree/16.0/product_cost_security"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_cost_security"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>It adds two security groups, one for viewing the product cost price, and the other for
editing it.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/product-attribute/tree/17.0/product_cost_security"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_cost_security"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>It adds two security groups, one for viewing the product cost price, and
the other for editing it.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down Expand Up @@ -400,24 +401,27 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module you need to:</p>
<ol class="arabic simple">
<li>Go to product form view.</li>
<li>You will not see the <em>Cost</em> field unless you follow the <em>Configuration</em> steps and get read permissions.</li>
<li>You will not be able to edit it unless you are granted write permissions.</li>
<li>You will not see the <em>Cost</em> field unless you follow the
<em>Configuration</em> steps and get read permissions.</li>
<li>You will not be able to edit it unless you are granted write
permissions.</li>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>To edit product costs, apart from having <em>Product costs / Edit</em> permission,
you need to have some other permission that lets you edit products, such as
<em>Sales / Administrator</em> or <em>Inventory / Administrator</em>.</li>
<li>To edit product costs, apart from having <em>Product costs / Edit</em>
permission, you need to have some other permission that lets you edit
products, such as <em>Sales / Administrator</em> or <em>Inventory /
Administrator</em>.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_cost_security%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="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**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -454,7 +458,7 @@ <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/sergio-teruel"><img alt="sergio-teruel" src="https://github.com/sergio-teruel.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/rafaelbn"><img alt="rafaelbn" src="https://github.com/rafaelbn.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/yajo"><img alt="yajo" src="https://github.com/yajo.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/16.0/product_cost_security">OCA/product-attribute</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/17.0/product_cost_security">OCA/product-attribute</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

0 comments on commit 458ecb0

Please sign in to comment.