Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
529e560
[MRG] From last customers devs, tests and bugfix. Most improvements a…
jgrandguillaume Jul 12, 2012
741b009
To ease merging the work with Alex, I already commit part of work:
jgrandguillaume Jun 29, 2012
08ed05c
[IMP] Rebuild the margin modules. This is the first working version t…
jgrandguillaume Jul 11, 2012
8d30020
[ADD] product_historical_margin_report that override the invoice line…
jgrandguillaume Jul 12, 2012
6002698
[IMP] product_cost_incl_bom, product_get_cost_field, sale_markup: ext…
May 15, 2012
b9f9d10
[MRG] From trunk branch, tests and bugfix. Most improvements are on:
jgrandguillaume Jul 12, 2012
931762a
[ADD] translation FR on product_standard_margin and product_historica…
Dec 13, 2012
be5bfab
[FIX] typos
Dec 13, 2012
a0ef068
Added Dutch translations to all modules.
Dec 23, 2012
a54371f
small fix in translation
Dec 23, 2012
135419a
[MIGR] Mark all module as installable = False unless we migrate them.…
jgrandguillaume Sep 11, 2013
1752759
[MIG] portage of product_standard_margin
yvaucher Oct 10, 2013
78030a5
[FIX] imports
yvaucher Oct 14, 2013
65e7aa2
[PEP8]
yvaucher Oct 14, 2013
e8ff611
[IMP] use date in __openerp__.py instead of deprecated update_xml and…
yvaucher Oct 14, 2013
c5ec87e
[FIX] remove group to show margin fields
yvaucher Oct 14, 2013
188beac
[ADD] pot file
yvaucher Oct 14, 2013
ec3e9c1
[IMP] update fr.po
yvaucher Oct 14, 2013
3c5b7c3
[IMP] Better logger implementation
jgrandguillaume Nov 27, 2013
1d21ec8
[FIX] Context propagation
jgrandguillaume Nov 27, 2013
cbb705d
[IMP] Use read whenever it's possible for performance reasons
jgrandguillaume Dec 10, 2013
5ae6ca8
[PEP8] product_standard_margin
yvaucher Dec 11, 2013
bebd58f
all modules are unported on 8.0 branch
gurneyalex Aug 13, 2014
0b4ff2e
[PORT][WIP] move 'product_standard_margin' from unported to regular f…
legalsylvain Jul 24, 2015
35d4c1e
[PORT][WIP] port somes commit from V7 branches, specially 18bf9614b1c…
legalsylvain Jul 24, 2015
4d3bc38
[PORT][REF] OCA convention;
legalsylvain Jul 24, 2015
5965cb7
[REF] V8 api;
legalsylvain Jul 24, 2015
5a12d23
[FIX] flake8 + Pylint;
legalsylvain Aug 17, 2015
3e30764
[REF] use new API;
legalsylvain Aug 17, 2015
4a605b9
[REF] add AGPL logo;
legalsylvain Aug 17, 2015
526eab3
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
79306aa
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
7eaf234
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
2116332
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
8050195
[REF] product_standard_margin: Black python code
legalsylvain Jan 7, 2020
ab81ff8
[MIG] product_standard_margin: Migration to 12.0
legalsylvain Jan 7, 2020
d5267d6
[UPD] Update product_standard_margin.pot
oca-travis Jul 19, 2020
28415e7
[UPD] README.rst
OCA-git-bot Jul 19, 2020
438b645
[ADD] icon.png
OCA-git-bot Jul 19, 2020
ea98626
Added translation using Weblate (German)
AndreVolksdorf Nov 20, 2020
67fe5f6
Translated using Weblate (German)
AndreVolksdorf Nov 20, 2020
314924f
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Mar 14, 2021
81b1fd5
Added translation using Weblate (Portuguese)
alvarorib Apr 12, 2021
8a23d84
[IMP] product_standard_margin: black, isort, prettier
cvinh Dec 15, 2021
53276b7
[MIG] product_standard_margin: Migration to 14.0
cvinh Dec 15, 2021
e0200f0
[IMP] Add margin fields in product tree views
cvinh Dec 15, 2021
bd0b2ef
[IMP] Add percentpie widget for rate field
cvinh Dec 16, 2021
0c2c5bd
[IMP] Add Markup Rate
cvinh Dec 23, 2021
995e024
[UPD] Update product_standard_margin.pot
Feb 16, 2023
b3345e4
[UPD] README.rst
OCA-git-bot Feb 16, 2023
5a24f79
Update translation files
weblate Feb 16, 2023
b8d9414
[MIG] product_standard_margin: Migration to 15.0
leemannd Feb 17, 2023
22bcf16
[UPD] Update product_standard_margin.pot
Feb 20, 2023
342b5c0
[UPD] README.rst
OCA-git-bot Feb 20, 2023
c72cf21
Update translation files
weblate Feb 20, 2023
d1b6b30
[MIG] product_standard_margin: Migration to 16.0
amarcosg Jun 5, 2023
2ee7d9d
[UPD] Update product_standard_margin.pot
Jun 21, 2023
ffdf5d7
[UPD] README.rst
OCA-git-bot Jun 21, 2023
5a3c499
[FIX] product_standard_margin
Jul 24, 2023
bc51c2d
product_standard_margin 16.0.1.0.1
OCA-git-bot Jul 24, 2023
ec99156
[UPD] README.rst
OCA-git-bot Sep 3, 2023
fb505b4
Update translation files
weblate Oct 9, 2023
465236e
[FIX] use lst_price for _compute_margin in product.product, update tests
anhvu-sg Jan 5, 2024
c011d55
Translated using Weblate (French)
kbentaleb Jan 8, 2024
6ff4773
Added translation using Weblate (Italian)
mymage Feb 1, 2024
880e4c5
Translated using Weblate (Italian)
mymage Feb 1, 2024
c3a966a
[BOT] post-merge updates
OCA-git-bot Apr 6, 2024
ef85ed0
Translated using Weblate (Portuguese (Brazil))
May 21, 2024
fbcecf8
[IMP] product_standard_margin : Remove 'theoretical' in the name of f…
legalsylvain Jun 12, 2024
dcad189
[UPD] Update product_standard_margin.pot
Oct 20, 2024
7267d70
[BOT] post-merge updates
OCA-git-bot Oct 20, 2024
ff43725
Update translation files
weblate Oct 20, 2024
a58cd03
Translated using Weblate (Italian)
mymage Oct 21, 2024
15bd32d
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Nov 13, 2024
9315406
Added translation using Weblate (Croatian)
uvid-gordana Feb 24, 2025
5e221fe
Translated using Weblate (Croatian)
uvid-gordana Feb 24, 2025
6c2552b
Translated using Weblate (French)
remi-filament Apr 15, 2025
3366a19
Translated using Weblate (French)
legalsylvain Dec 9, 2025
531da82
[IMP] product_standard_margin: pre-commit auto fixes
ChristianTessera Feb 11, 2026
56e8356
[MIG] product_standard_margin: Migration to 17.0
ChristianTessera Feb 11, 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] product_standard_margin: Migration to 16.0
  • Loading branch information
amarcosg authored and ChristianTessera committed Feb 11, 2026
commit d1b6b302ace97f212037890815ad1e742fbe5dad
2 changes: 1 addition & 1 deletion product_standard_margin/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Product Margin and Margin Rate",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"author": "Camptocamp,GRAP,Odoo Community Association (OCA)",
"category": "Product",
"depends": ["account"],
Expand Down
91 changes: 91 additions & 0 deletions product_standard_margin/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_standard_margin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-05 09:26+0000\n"
"PO-Revision-Date: 2023-06-05 11:27+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"Language: es\n"
"X-Generator: Poedit 2.0.6\n"

#. module: product_standard_margin
#: model:ir.model.fields,help:product_standard_margin.field_product_product__standard_margin_rate
#: model:ir.model.fields,help:product_standard_margin.field_product_template__standard_margin_rate
msgid ""
"Margin rate is [ Theorical Margin / sale price (Wo Tax) ] of the product "
"form (not based on historical values).Take care of tax include and "
"exclude.. If no sale price set, will display 999.0"
msgstr ""
"La tasa de margen es [ Margen teórico / precio de venta (sin impuestos) ] "
"de la ficha del producto (no basado en valores históricos). Tenga cuidado "
"de impuestos incluidos y excluidos. Si no hay precio de venta establecido "
"mostrará 999.0"

#. module: product_standard_margin
#: model:ir.model.fields,help:product_standard_margin.field_product_product__standard_markup_rate
#: model:ir.model.fields,help:product_standard_margin.field_product_template__standard_markup_rate
msgid ""
"Markup rate is [ Theorical Margin / cost price (Wo Tax) ] of the product "
"form (not based on historical values).Take care of tax include and "
"exclude.. If no cost price set, will display 999.0"
msgstr ""
"La tasa de Markup es [ Margen teórico / precio de coste (sin impuestos) ] "
"de la ficha del producto (no basado en valores históricos). Tenga cuidado "
"de impuestos incluidos y excluidos. Si no hay precio de coste establecido "
"mostrará 999.0"

#. module: product_standard_margin
#: model:ir.model,name:product_standard_margin.model_product_template
msgid "Product"
msgstr "Producto"

#. module: product_standard_margin
#: model:ir.model,name:product_standard_margin.model_product_product
msgid "Product Variant"
msgstr "Variante de producto"

#. module: product_standard_margin
#: model:ir.model.fields,field_description:product_standard_margin.field_product_product__list_price_vat_excl
#: model:ir.model.fields,field_description:product_standard_margin.field_product_template__list_price_vat_excl
msgid "Sale Price VAT Excluded"
msgstr "Precio de venta sin impuestos"

#. module: product_standard_margin
#: model:ir.model.fields,field_description:product_standard_margin.field_product_product__standard_margin
#: model:ir.model.fields,field_description:product_standard_margin.field_product_template__standard_margin
msgid "Theorical Margin"
msgstr "Margen teórico"

#. module: product_standard_margin
#: model:ir.model.fields,field_description:product_standard_margin.field_product_product__standard_margin_rate
#: model:ir.model.fields,field_description:product_standard_margin.field_product_template__standard_margin_rate
msgid "Theorical Margin (%)"
msgstr "Margen teórico (%)"

#. module: product_standard_margin
#: model:ir.model.fields,help:product_standard_margin.field_product_product__standard_margin
#: model:ir.model.fields,help:product_standard_margin.field_product_template__standard_margin
msgid ""
"Theorical Margin is [ sale price (Wo Tax) - cost price ] of the product "
"form (not based on historical values). Take care of tax include and "
"exclude. If no sale price, the margin will be negativ."
msgstr ""
"El margen teórico es [ precio de venta (sin impuestos) - precio de coste ] "
"de la ficha del producto (no basado en valores históricos). Tenga cuidado "
"de impuestos incluidos y excluidos. Si no hay precio de venta el margen "
"será negativo."

#. module: product_standard_margin
#: model:ir.model.fields,field_description:product_standard_margin.field_product_product__standard_markup_rate
#: model:ir.model.fields,field_description:product_standard_margin.field_product_template__standard_markup_rate
msgid "Theorical Markup (%)"
msgstr "Markup teórico (%)"
12 changes: 5 additions & 7 deletions product_standard_margin/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from odoo import api, fields, models

import odoo.addons.decimal_precision as dp


class ProductProduct(models.Model):
_inherit = "product.product"
Expand All @@ -17,14 +15,14 @@ class ProductProduct(models.Model):
compute="_compute_margin",
string="Sale Price VAT Excluded",
store=True,
digits=dp.get_precision("Product Price"),
digits="Product Price",
)

standard_margin = fields.Float(
compute="_compute_margin",
string="Theorical Margin",
store=True,
digits=dp.get_precision("Product Price"),
digits="Product Price",
help="Theorical Margin is [ sale price (Wo Tax) - cost price ] "
"of the product form (not based on historical values). "
"Take care of tax include and exclude. If no sale price, "
Expand All @@ -35,8 +33,8 @@ class ProductProduct(models.Model):
compute="_compute_margin",
string="Theorical Margin (%)",
store=True,
digits=dp.get_precision("Product Price"),
help="Markup rate is [ Theorical Margin / sale price (Wo Tax) ] "
digits="Product Price",
help="Margin rate is [ Theorical Margin / sale price (Wo Tax) ] "
"of the product form (not based on historical values)."
"Take care of tax include and exclude.. If no sale price "
"set, will display 999.0",
Expand All @@ -45,7 +43,7 @@ class ProductProduct(models.Model):
compute="_compute_margin",
string="Theorical Markup (%)",
store=True,
digits=dp.get_precision("Product Price"),
digits="Product Price",
help="Markup rate is [ Theorical Margin / cost price (Wo Tax) ] "
"of the product form (not based on historical values)."
"Take care of tax include and exclude.. If no cost price "
Expand Down
10 changes: 4 additions & 6 deletions product_standard_margin/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from odoo import api, fields, models

import odoo.addons.decimal_precision as dp


class ProductTemplate(models.Model):
_inherit = "product.template"
Expand All @@ -16,13 +14,13 @@ class ProductTemplate(models.Model):
list_price_vat_excl = fields.Float(
compute="_compute_margin",
string="Sale Price VAT Excluded",
digits=dp.get_precision("Product Price"),
digits="Product Price",
)

standard_margin = fields.Float(
compute="_compute_margin",
string="Theorical Margin",
digits=dp.get_precision("Product Price"),
digits="Product Price",
help="Theorical Margin is [ sale price (Wo Tax) - cost price ] "
"of the product form (not based on historical values). "
"Take care of tax include and exclude. If no sale price, "
Expand All @@ -32,7 +30,7 @@ class ProductTemplate(models.Model):
standard_margin_rate = fields.Float(
compute="_compute_margin",
string="Theorical Margin (%)",
digits=dp.get_precision("Product Price"),
digits="Product Price",
help="Margin rate is [ Theorical Margin / sale price (Wo Tax) ] "
"of the product form (not based on historical values)."
"Take care of tax include and exclude.. If no sale price "
Expand All @@ -41,7 +39,7 @@ class ProductTemplate(models.Model):
standard_markup_rate = fields.Float(
compute="_compute_margin",
string="Theorical Markup (%)",
digits=dp.get_precision("Product Price"),
digits="Product Price",
help="Markup rate is [ Theorical Margin / cost price (Wo Tax) ] "
"of the product form (not based on historical values)."
"Take care of tax include and exclude.. If no cost price "
Expand Down