Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
26e299c
[ADD] sale_margin_security: New module (#37)
chienandalu Jul 11, 2018
47490e1
[MIG] sale_margin_security: Migration to v12.0
sergio-teruel Nov 6, 2019
9102b13
[IMP] sale_margin_security: black, isort
sergio-teruel Feb 24, 2020
12c2e81
[MIG] sale_margin_security: Migration to v13.0
sergio-teruel Feb 24, 2020
44e8c12
[FIX] sale_margin_security: onchange product
chienandalu Jun 1, 2020
3892bd1
Added translation using Weblate (Spanish)
HaraldPanten Dec 16, 2020
ea05074
[IMP] : black, isort, prettier
rafamarpe Oct 23, 2022
044fbd9
[MIG] sale_margin_security: Migration to 14.0
rafamarpe Oct 23, 2022
d0caf80
[MIG] sale_margin_security: Migration to 15.0
CarlosRoca13 Nov 7, 2022
5b20f0d
Update translation files
weblate Nov 7, 2022
eb04f53
[IMP] sale_margin_security: pre-commit stuff
Jun 5, 2023
5affa70
[MIG] sale_margin_securtiy: Migration to 16.0
Jun 5, 2023
015ad48
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
ade3d41
[IMP] sale_margin_security: Avoid display margin in measures pivot view.
carlosdauden Nov 21, 2023
bf58cd5
Update translation files
weblate Dec 22, 2023
3bfd089
Translated using Weblate (Spanish)
Ivorra78 Dec 29, 2023
1bf11d7
Added translation using Weblate (Italian)
mymage Feb 1, 2024
e5a799b
[IMP] sale_margin_security: depend on product_cost_security
yajo Mar 8, 2024
e8c12ab
Update translation files
weblate Apr 6, 2024
ad2e367
Translated using Weblate (Italian)
mymage Apr 8, 2024
c7d2983
[IMP] sale_margin_security: pre-commit auto fixes
carlos-lopez-tecnativa Jan 29, 2025
e81c703
[MIG] sale_margin_security: Migration to version 17.0
carlos-lopez-tecnativa Jan 29, 2025
336c79d
[MIG] sale_margin_security: Migration to version 18.0
carlos-lopez-tecnativa Feb 20, 2025
2d71c35
[UPD] Update sale_margin_security.pot
Feb 21, 2025
a472d85
[BOT] post-merge updates
OCA-git-bot Feb 21, 2025
e6eaec5
Added translation using Weblate (Turkish)
bo-eska May 8, 2025
89b8904
Translated using Weblate (Turkish)
bo-eska May 8, 2025
9a57b36
[IMP] sale_margin_security: pre-commit auto fixes
dreispt Jan 4, 2026
248ab7c
[MIG] sale_margin_security: Migration to 19.0
dreispt Jan 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[IMP] sale_margin_security: pre-commit auto fixes
  • Loading branch information
carlos-lopez-tecnativa authored and dreispt committed Jan 4, 2026
commit c7d29832b7ddcedf46bbccd3c493d9c54efa688a
45 changes: 23 additions & 22 deletions sale_margin_security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ Sale Margin 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%2Fmargin--analysis-lightgray.png?logo=github
:target: https://github.com/OCA/margin-analysis/tree/16.0/sale_margin_security
:target: https://github.com/OCA/margin-analysis/tree/17.0/sale_margin_security
:alt: OCA/margin-analysis
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_security
:target: https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-sale_margin_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/margin-analysis&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module lets you limit who can see or edit sale margin data within sale orders.
This module lets you limit who can see or edit sale margin data within
sale orders.

**Table of contents**

Expand All @@ -38,16 +39,16 @@ This module lets you limit who can see or edit sale margin data within sale orde
Use Cases / Context
===================

This module was developed because in some companies, salespersons shouldn't be
able to see the product cost or their sale margin.
This module was developed because in some companies, salespersons
shouldn't be able to see the product cost or their sale margin.

Installation
============

This module will be auto-installed if these others are installed too:

- ``product_cost_security`` from
`OCA/product-attribute <https://github.com/OCA/product-attribute>`_.
`OCA/product-attribute <https://github.com/OCA/product-attribute>`__.
- ``sale_margin`` from Odoo CE.

Configuration
Expand All @@ -58,44 +59,44 @@ Follow configuration instructions for module ``product_cost_security``.
Usage
=====

Afterwards configuring, the product cost security rules will be applied to sale orders.
Only authorized users will be able to see or edit sale margin and product cost data from
within sale orders.
Afterwards configuring, the product cost security rules will be applied
to sale orders. Only authorized users will be able to see or edit sale
margin and product cost data from within sale orders.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/margin-analysis/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/margin-analysis/issues/new?body=module:%20sale_margin_security%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20sale_margin_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
* Carlos Roca
- Sergio Teruel
- David Vidal
- Carlos Roca

* `Moduon <https://www.moduon.team>`_
- `Moduon <https://www.moduon.team>`__

* Rafael Blasco
* Jairo Llopis
- Rafael Blasco
- Jairo Llopis

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

This module is maintained by the OCA.

Expand All @@ -121,6 +122,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sergio-teruel| |maintainer-rafaelbn| |maintainer-yajo|

This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/16.0/sale_margin_security>`_ project on GitHub.
This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/17.0/sale_margin_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 sale_margin_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"
1 change: 1 addition & 0 deletions sale_margin_security/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Follow configuration instructions for module `product_cost_security`.
1 change: 0 additions & 1 deletion sale_margin_security/readme/CONFIGURE.rst

This file was deleted.

2 changes: 2 additions & 0 deletions sale_margin_security/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module was developed because in some companies, salespersons
shouldn't be able to see the product cost or their sale margin.
2 changes: 0 additions & 2 deletions sale_margin_security/readme/CONTEXT.rst

This file was deleted.

7 changes: 7 additions & 0 deletions sale_margin_security/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- [Tecnativa](https://www.tecnativa.com)
- Sergio Teruel
- David Vidal
- Carlos Roca
- [Moduon](https://www.moduon.team)
- Rafael Blasco
- Jairo Llopis
10 changes: 0 additions & 10 deletions sale_margin_security/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
This module lets you limit who can see or edit sale margin data within sale orders.
This module lets you limit who can see or edit sale margin data within
sale orders.
5 changes: 5 additions & 0 deletions sale_margin_security/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module will be auto-installed if these others are installed too:

- `product_cost_security` from
[OCA/product-attribute](https://github.com/OCA/product-attribute).
- `sale_margin` from Odoo CE.
5 changes: 0 additions & 5 deletions sale_margin_security/readme/INSTALL.rst

This file was deleted.

3 changes: 3 additions & 0 deletions sale_margin_security/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Afterwards configuring, the product cost security rules will be applied
to sale orders. Only authorized users will be able to see or edit sale
margin and product cost data from within sale orders.
3 changes: 0 additions & 3 deletions sale_margin_security/readme/USAGE.rst

This file was deleted.

30 changes: 17 additions & 13 deletions sale_margin_security/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -368,8 +369,9 @@ <h1 class="title">Sale Margin Security</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a15d1a444994eb36fb8d980a0eb9ec6469281babfadba838c18668d89b77de83
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/margin-analysis/tree/16.0/sale_margin_security"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_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/margin-analysis&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>This module lets you limit who can see or edit sale margin data within sale orders.</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/margin-analysis/tree/17.0/sale_margin_security"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-sale_margin_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/margin-analysis&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>This module lets you limit who can see or edit sale margin data within
sale orders.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -388,8 +390,8 @@ <h1 class="title">Sale Margin Security</h1>
</div>
<div class="section" id="use-cases-context">
<h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
<p>This module was developed because in some companies, salespersons shouldn’t be
able to see the product cost or their sale margin.</p>
<p>This module was developed because in some companies, salespersons
shouldn’t be able to see the product cost or their sale margin.</p>
</div>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#toc-entry-2">Installation</a></h1>
Expand All @@ -406,16 +408,16 @@ <h1><a class="toc-backref" href="#toc-entry-3">Configuration</a></h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-4">Usage</a></h1>
<p>Afterwards configuring, the product cost security rules will be applied to sale orders.
Only authorized users will be able to see or edit sale margin and product cost data from
within sale orders.</p>
<p>Afterwards configuring, the product cost security rules will be applied
to sale orders. Only authorized users will be able to see or edit sale
margin and product cost data from within sale orders.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-5">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/margin-analysis/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/margin-analysis/issues/new?body=module:%20sale_margin_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/margin-analysis/issues/new?body=module:%20sale_margin_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 @@ -445,13 +447,15 @@ <h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</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/margin-analysis/tree/16.0/sale_margin_security">OCA/margin-analysis</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/17.0/sale_margin_security">OCA/margin-analysis</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