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
[MIG] sale_margin_security: Migration to 14.0
  • Loading branch information
rafamarpe authored and dreispt committed Jan 4, 2026
commit 044fbd963efae5fd95d22b1f63c4919e8b2f131b
10 changes: 5 additions & 5 deletions sale_margin_security/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ 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/13.0/sale_margin_security
:target: https://github.com/OCA/margin-analysis/tree/14.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-13-0/margin-analysis-13-0-sale_margin_security
:target: https://translation.odoo-community.org/projects/margin-analysis-14-0/margin-analysis-14-0-sale_margin_security
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/132/13.0
:target: https://runbot.odoo-community.org/runbot/132/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -54,7 +54,7 @@ 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20sale_margin_security%0Aversion:%2013.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:%2014.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.

Expand Down Expand Up @@ -93,6 +93,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sergio-teruel|

This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/13.0/sale_margin_security>`_ project on GitHub.
This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/14.0/sale_margin_security>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion sale_margin_security/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import models
from . import report
2 changes: 1 addition & 1 deletion sale_margin_security/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale Margin Security",
"version": "13.0.1.0.1",
"version": "14.0.1.0.0",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/margin-analysis",
"category": "Sales",
Expand Down
29 changes: 26 additions & 3 deletions sale_margin_security/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,34 @@ msgstr ""
"X-Generator: Weblate 4.3.2\n"

#. module: sale_margin_security
#: model:ir.model,name:sale_margin_security.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report__display_name
msgid "Display Name"
msgstr ""

#. module: sale_margin_security
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report__id
msgid "ID"
msgstr ""

#. module: sale_margin_security
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_margin_security
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report__margin
msgid "Margin"
msgstr ""

#. module: sale_margin_security
#: model:ir.model,name:sale_margin_security.model_sale_report
msgid "Sales Analysis Report"
msgstr ""

#. module: sale_margin_security
#: model:res.groups,name:sale_margin_security.group_sale_margin_security
msgid "Show Sale Margin"
msgstr "Mostrar Margen de Venta"

#~ msgid "Sales Order Line"
#~ msgstr "Línea de pedido de venta"
26 changes: 23 additions & 3 deletions sale_margin_security/i18n/sale_margin_security.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -14,8 +14,28 @@ msgstr ""
"Plural-Forms: \n"

#. module: sale_margin_security
#: model:ir.model,name:sale_margin_security.model_sale_order_line
msgid "Sales Order Line"
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report__display_name
msgid "Display Name"
msgstr ""

#. module: sale_margin_security
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report__id
msgid "ID"
msgstr ""

#. module: sale_margin_security
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_margin_security
#: model:ir.model.fields,field_description:sale_margin_security.field_sale_report__margin
msgid "Margin"
msgstr ""

#. module: sale_margin_security
#: model:ir.model,name:sale_margin_security.model_sale_report
msgid "Sales Analysis Report"
msgstr ""

#. module: sale_margin_security
Expand Down
1 change: 0 additions & 1 deletion sale_margin_security/models/__init__.py

This file was deleted.

24 changes: 0 additions & 24 deletions sale_margin_security/models/sale_order.py

This file was deleted.

1 change: 1 addition & 0 deletions sale_margin_security/report/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_report
9 changes: 9 additions & 0 deletions sale_margin_security/report/sale_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from odoo import fields, models


class SaleReport(models.Model):
_inherit = "sale.report"

margin = fields.Float(
groups="sale_margin_security.group_sale_margin_security",
)
6 changes: 3 additions & 3 deletions sale_margin_security/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Sale Margin Security</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" 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" href="https://github.com/OCA/margin-analysis/tree/13.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" href="https://translation.odoo-community.org/projects/margin-analysis-13-0/margin-analysis-13-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" href="https://runbot.odoo-community.org/runbot/132/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" 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" 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" href="https://github.com/OCA/margin-analysis/tree/14.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" href="https://translation.odoo-community.org/projects/margin-analysis-14-0/margin-analysis-14-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" href="https://runbot.odoo-community.org/runbot/132/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to restrict the access to sale margin fields to a specific
security group of users.</p>
<p><strong>Table of contents</strong></p>
Expand Down Expand Up @@ -403,7 +403,7 @@ <h1><a class="toc-backref" href="#id3">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 smashing 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:%2013.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:%2014.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 All @@ -430,7 +430,7 @@ <h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/sergio-teruel"><img alt="sergio-teruel" src="https://github.com/sergio-teruel.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/13.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/14.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