Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0] [MIG] product_pricelist_simulation_margin: Migration to 17.0 #1711

Open
wants to merge 16 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
106 changes: 106 additions & 0 deletions product_pricelist_simulation_margin/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
===================================
Product Pricelist Simulation Margin
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cd434080f349c39b1a5fe08ed404def07b49dc3ee8b70f549a2dcd707deae15b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/17.0/product_pricelist_simulation_margin
: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-17-0/product-attribute-17-0-product_pricelist_simulation_margin
: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=17.0
:alt: Try me on Runboat

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

This module is designed to extend Product Module in Odoo to preview
product margin depending on the different pricelists.

**Table of contents**

.. contents::
:local:

Usage
=====

- Go to "Sale > Products > Products"

- Open a product form

- on the button incorporated in the module
https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/'https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/phttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/rhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ohttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/dhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/uhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/chttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/thttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/_https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/phttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/rhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ihttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/chttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ehttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/lhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ihttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/shttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/thttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/_https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/shttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ihttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/mhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/uhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/lhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ahttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/thttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ihttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ohttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/nhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/'https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/.https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/.https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ihttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/mhttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ahttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ghttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ehttps://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/:https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/:https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/
https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/ ../static/description/product_template_form.png

- Click on the button, and check if the margins are correct

|image|

- you can optionnaly change date, or quantity, if you have complex
pricelist depending on such parameters.

.. |image| image:: https://raw.githubusercontent.com/OCA/product-attribute/17.0/product_pricelist_simulation_margin/static/description/wizard_preview_pricelist_margin_form.png

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_pricelist_simulation_margin%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
-------

* FactorLibre

Contributors
------------

- Sylvain LE GAL <https://twitter.com/legalsylvain>
- Hugo Córdoba - FactorLibre <https://www.factorlibre.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_simulation_margin>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_pricelist_simulation_margin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
19 changes: 19 additions & 0 deletions product_pricelist_simulation_margin/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 FactorLibre - Hugo Córdoba ([email protected])
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Product Pricelist Simulation Margin",
"summary": "Add margin of product price for all pricelists",
"version": "17.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"author": "Odoo Community Association (OCA), FactorLibre",
"maintainers": ["legalsylvain"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["product_pricelist_simulation"],
"data": [
"wizards/wizard_preview_pricelist_views.xml",
],
}
53 changes: 53 additions & 0 deletions product_pricelist_simulation_margin/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_simulation_margin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-19 09:16+0000\n"
"PO-Revision-Date: 2023-08-29 08:30+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist__standard_price
msgid "Cost"
msgstr "Coste"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin
msgid "Margin"
msgstr "Margen"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin_percent
msgid "Margin (%)"
msgstr "Margen (%)"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_excl
msgid "Unit Sales Price (Excl.)"
msgstr "Precio de venta unitario (Excl.)"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_incl
msgid "Unit Sales Price (Incl.)"
msgstr "Precio de venta unitario (Incl.)"

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist
msgid "wizard - Preview Pricelist"
msgstr "asistente - Vista previa de la Lista de Precios"

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist_line
msgid "wizard - Preview Pricelist Line"
msgstr "asistente - Vista previa de línea de lista de precios"
52 changes: 52 additions & 0 deletions product_pricelist_simulation_margin/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_simulation_margin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-29 15:40+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist__standard_price
msgid "Cost"
msgstr "Costo"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin
msgid "Margin"
msgstr "Margine"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin_percent
msgid "Margin (%)"
msgstr "Margine (%)"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_excl
msgid "Unit Sales Price (Excl.)"
msgstr "Prezzo di vendita unitario (esclusa)"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_incl
msgid "Unit Sales Price (Incl.)"
msgstr "Prezzo vendita unitario (inclusa)"

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist
msgid "wizard - Preview Pricelist"
msgstr "procedura quidata - anteprima listino"

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist_line
msgid "wizard - Preview Pricelist Line"
msgstr "procedura quidata - riga anteprima listino"
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_simulation_margin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist__standard_price
msgid "Cost"
msgstr ""

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin
msgid "Margin"
msgstr ""

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin_percent
msgid "Margin (%)"
msgstr ""

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_excl
msgid "Unit Sales Price (Excl.)"
msgstr ""

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_incl
msgid "Unit Sales Price (Incl.)"
msgstr ""

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist
msgid "wizard - Preview Pricelist"
msgstr ""

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist_line
msgid "wizard - Preview Pricelist Line"
msgstr ""
52 changes: 52 additions & 0 deletions product_pricelist_simulation_margin/i18n/tr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_simulation_margin
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-11 08:37+0000\n"
"Last-Translator: Ömer KÜLAK <[email protected]>\n"
"Language-Team: none\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist__standard_price
msgid "Cost"
msgstr "Maliyet"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin
msgid "Margin"
msgstr "Marj"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__margin_percent
msgid "Margin (%)"
msgstr "Marj (%)"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_excl
msgid "Unit Sales Price (Excl.)"
msgstr "Satış Fiyatı (Vergi Hariç)"

#. module: product_pricelist_simulation_margin
#: model:ir.model.fields,field_description:product_pricelist_simulation_margin.field_wizard_preview_pricelist_line__price_vat_incl
msgid "Unit Sales Price (Incl.)"
msgstr "Satış Fiyatı (Vergi Dahil)"

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist
msgid "wizard - Preview Pricelist"
msgstr "Fiyat Listesini İncele"

#. module: product_pricelist_simulation_margin
#: model:ir.model,name:product_pricelist_simulation_margin.model_wizard_preview_pricelist_line
msgid "wizard - Preview Pricelist Line"
msgstr "Fiyat Listesi Satırlarını İncele"
3 changes: 3 additions & 0 deletions product_pricelist_simulation_margin/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions product_pricelist_simulation_margin/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Sylvain LE GAL \<<https://twitter.com/legalsylvain>\>
- Hugo Córdoba - FactorLibre \<<https://www.factorlibre.com>\>
2 changes: 2 additions & 0 deletions product_pricelist_simulation_margin/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module is designed to extend Product Module in Odoo to preview
product margin depending on the different pricelists.
14 changes: 14 additions & 0 deletions product_pricelist_simulation_margin/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- Go to "Sale \> Products \> Products"

- Open a product form

- on the button incorporated in the module
'product_pricelist_simulation' .. image::
../static/description/product_template_form.png

- Click on the button, and check if the margins are correct

![image](../static/description/wizard_preview_pricelist_margin_form.png)

- you can optionnaly change date, or quantity, if you have complex
pricelist depending on such parameters.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading