Skip to content

Commit

Permalink
Merge PR #1706 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Nov 19, 2024
2 parents 21171af + 68a99f0 commit 7192a12
Show file tree
Hide file tree
Showing 18 changed files with 1,190 additions and 0 deletions.
103 changes: 103 additions & 0 deletions product_pricelist_fixed_currency_rate/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=====================================
Product Pricelist Fixed Currency Rate
=====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:705f94a56352ec7c69ab3d351588f96a01ef2266e347c800f32094d29d3de741
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_fixed_currency_rate
: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_fixed_currency_rate
: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 extends the product pricelists feature to allow to set a
fixed currency rate to convert from a pricelist with a different
currency.

**Table of contents**

.. contents::
:local:

Usage
=====

When using advanced price rules:

1. Go to a pricelist and create a pricelist with a given currency.
2. Create a new pricelist rule with computation formula.
3. Make it based on other pricelist that uses a different currency.
4. *Fixed Currency Rate* will show up, set a value.

This will force the currency conversion to always use the specified
*Fixed Currency Rate* rate when using this pricelist.

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

* ForgeFlow

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

- Lois Rilo <lois.rilo@forgeflow.com>
- Mohamed Alkobrosli <mohamed@kobros-tech.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-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px
:target: https://github.com/LoisRForgeFlow
:alt: LoisRForgeFlow
.. |maintainer-kobros-tech| image:: https://github.com/kobros-tech.png?size=40px
:target: https://github.com/kobros-tech
:alt: kobros-tech

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

|maintainer-LoisRForgeFlow| |maintainer-kobros-tech|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_pricelist_fixed_currency_rate>`_ 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_fixed_currency_rate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions product_pricelist_fixed_currency_rate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Product Pricelist Fixed Currency Rate",
"summary": "Set a fixed currency rate between pricelists",
"version": "17.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"maintainers": ["LoisRForgeFlow", "kobros-tech"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["product"],
"data": [
"views/pricelist_views.xml",
],
}
84 changes: 84 additions & 0 deletions product_pricelist_fixed_currency_rate/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_fixed_currency_rate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-15 20:38+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\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_fixed_currency_rate
#. odoo-python
#: code:addons/product_pricelist_fixed_currency_rate/models/product_pricelist_item.py:0
#, python-format
msgid "({curr_from} to {curr_to} rates)"
msgstr "({curr_from} to {curr_to} rates)"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__actual_currency_rate
msgid "Actual Currency Rate"
msgstr "Tipo de Cambio Real"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model,name:product_pricelist_fixed_currency_rate.model_res_currency
msgid "Currency"
msgstr "Divisa"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__currency_rate_tooltip
msgid "Currency Rate Tooltip"
msgstr "Información sobre el Tipo de Cambio"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__do_inverse_currency_rate
msgid "Do Inverse Currency Rate"
msgstr "Invertir el Tipo de Cambio"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__fixed_currency_rate
msgid "Fixed Currency Rate"
msgstr "Tipo de Cambio Fijo"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,help:product_pricelist_fixed_currency_rate.field_product_pricelist_item__fixed_currency_rate
#: model:ir.model.fields,help:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_fixed_currency_rate
msgid ""
"If set (different to 0.0), the currency conversion will ignore the actual "
"currency rate and always use the fixed currency rate."
msgstr ""
"Si se establece (diferente a 0.0), la conversión de moneda ignorará el tipo "
"de moneda actual y utilizará siempre el tipo de moneda fijo."

#. module: product_pricelist_fixed_currency_rate
#: model_terms:ir.ui.view,arch_db:product_pricelist_fixed_currency_rate.product_pricelist_item_form_view
msgid "Inverse"
msgstr "Inverso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_actual_currency_rate
msgid "Inverse Actual Currency Rate"
msgstr "Tipo de Divisa Real Inverso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_fixed_currency_rate
msgid "Inverse Fixed Currency Rate"
msgstr "Tipo de Cambio Fijo Inverso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__is_fixed_currency_rate_applicable
msgid "Is Fixed Currency Rate Applicable"
msgstr "Es aplicable el tipo de cambio fijo"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model,name:product_pricelist_fixed_currency_rate.model_product_pricelist_item
msgid "Pricelist Rule"
msgstr "Regla de la lista de precios"
84 changes: 84 additions & 0 deletions product_pricelist_fixed_currency_rate/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_fixed_currency_rate
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-13 16:38+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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_fixed_currency_rate
#. odoo-python
#: code:addons/product_pricelist_fixed_currency_rate/models/product_pricelist_item.py:0
#, python-format
msgid "({curr_from} to {curr_to} rates)"
msgstr "(tasso da {curr_from} a {curr_to})"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__actual_currency_rate
msgid "Actual Currency Rate"
msgstr "Tasso valuta attuale"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model,name:product_pricelist_fixed_currency_rate.model_res_currency
msgid "Currency"
msgstr "Valuta"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__currency_rate_tooltip
msgid "Currency Rate Tooltip"
msgstr "Nota tasso valuta"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__do_inverse_currency_rate
msgid "Do Inverse Currency Rate"
msgstr "Inverti tasso valuta"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__fixed_currency_rate
msgid "Fixed Currency Rate"
msgstr "Tasso valuta fisso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,help:product_pricelist_fixed_currency_rate.field_product_pricelist_item__fixed_currency_rate
#: model:ir.model.fields,help:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_fixed_currency_rate
msgid ""
"If set (different to 0.0), the currency conversion will ignore the actual "
"currency rate and always use the fixed currency rate."
msgstr ""
"Se impostata (diversa da 0,0), la vonversione di valuta ignorerà il tasso "
"valuta attuale e userà sempre il tasso valuta fisso."

#. module: product_pricelist_fixed_currency_rate
#: model_terms:ir.ui.view,arch_db:product_pricelist_fixed_currency_rate.product_pricelist_item_form_view
msgid "Inverse"
msgstr "Inverso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_actual_currency_rate
msgid "Inverse Actual Currency Rate"
msgstr "Inverso tasso valuta attuale"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_fixed_currency_rate
msgid "Inverse Fixed Currency Rate"
msgstr "Inverso tasso valuta fisso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__is_fixed_currency_rate_applicable
msgid "Is Fixed Currency Rate Applicable"
msgstr "È applicabile il tasso valuta fisso"

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model,name:product_pricelist_fixed_currency_rate.model_product_pricelist_item
msgid "Pricelist Rule"
msgstr "Regola listino prezzi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_pricelist_fixed_currency_rate
#
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_fixed_currency_rate
#. odoo-python
#: code:addons/product_pricelist_fixed_currency_rate/models/product_pricelist_item.py:0
#, python-format
msgid "({curr_from} to {curr_to} rates)"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__actual_currency_rate
msgid "Actual Currency Rate"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model,name:product_pricelist_fixed_currency_rate.model_res_currency
msgid "Currency"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__currency_rate_tooltip
msgid "Currency Rate Tooltip"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__do_inverse_currency_rate
msgid "Do Inverse Currency Rate"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__fixed_currency_rate
msgid "Fixed Currency Rate"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,help:product_pricelist_fixed_currency_rate.field_product_pricelist_item__fixed_currency_rate
#: model:ir.model.fields,help:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_fixed_currency_rate
msgid ""
"If set (different to 0.0), the currency conversion will ignore the actual "
"currency rate and always use the fixed currency rate."
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model_terms:ir.ui.view,arch_db:product_pricelist_fixed_currency_rate.product_pricelist_item_form_view
msgid "Inverse"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_actual_currency_rate
msgid "Inverse Actual Currency Rate"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__inverse_fixed_currency_rate
msgid "Inverse Fixed Currency Rate"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model.fields,field_description:product_pricelist_fixed_currency_rate.field_product_pricelist_item__is_fixed_currency_rate_applicable
msgid "Is Fixed Currency Rate Applicable"
msgstr ""

#. module: product_pricelist_fixed_currency_rate
#: model:ir.model,name:product_pricelist_fixed_currency_rate.model_product_pricelist_item
msgid "Pricelist Rule"
msgstr ""
2 changes: 2 additions & 0 deletions product_pricelist_fixed_currency_rate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import product_pricelist_item
from . import res_currency
Loading

0 comments on commit 7192a12

Please sign in to comment.