Skip to content

Commit

Permalink
Merge PR OCA#2778 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 14, 2023
2 parents feebcf4 + 142f0bd commit 68ba244
Show file tree
Hide file tree
Showing 41 changed files with 1,648 additions and 0 deletions.
116 changes: 116 additions & 0 deletions sale_order_price_recalculation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
===================================
Price recalculation in sales orders
===================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f6f1dd938d1e2639548cdc7f7fbef897ba5fad51ddd802d69634835d46f407ab
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/16.0/sale_order_price_recalculation
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_order_price_recalculation
: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/sale-workflow&target_branch=16.0
:alt: Try me on Runboat

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

This module add 2 buttons on sale orders (below sale order lines) that:

* Recalculates the prices of the order lines that contain a product in them.
* Reset product descriptions from current product information.

It is launched manually as a button to get the user decide if he/she wants to
recalculate prices when pricelist is changed or after duplicating a sale order
to update or not sales information.

**Table of contents**

.. contents::
:local:

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

You need to install sale_management module for accessing the needed menus.

Usage
=====

Inside a sale order, you can click on "Recalculate prices" to launch a
recalculation of all the prices of the lines, losing previous custom prices.

The second "Reset descriptions" will get descriptions from products, losing
custom descriptions.

.. image:: https://raw.githubusercontent.com/sale_order_price_recalculation/static/description/sale_order_price_recalculation.png
:alt: Sale order price recalculation

Known issues / Roadmap
======================

* In a sale order with lot of lines, the recalculation may slow down, because
sale general data (amount untaxed, amount taxed...) are recalculated for
each line.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/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/sale-workflow/issues/new?body=module:%20sale_order_price_recalculation%0Aversion:%2016.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
~~~~~~~

* AvanzOSC
* Grupo Vermon
* Tecnativa

Contributors
~~~~~~~~~~~~

* Carlos Sánchez Cifuentes <[email protected]>
* Pedro M. Baeza <[email protected]>
* Oihane Crucelaegui <[email protected]>
* Pierre Verkest <[email protected]>
* Vicent Cubells <[email protected]>
* David Vidal <[email protected]>
* Duc, Dao Dong <[email protected]> (https://komit-consulting.com)
* Raf Ven <[email protected]>

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.

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_order_price_recalculation>`_ 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 sale_order_price_recalculation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions sale_order_price_recalculation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2014 Carlos Sánchez Cifuentes <[email protected]>
# Copyright 2015-2020 Tecnativa - Pedro M. Baeza
# Copyright 2015 Oihane Crucelaegui <[email protected]>
# Copyright 2016 Vicent Cubells <[email protected]>
# Copyright 2017 David Vidal <[email protected]>
# Copyright 2018 Duc Dao Dong <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Price recalculation in sales orders",
"summary": "Recalculate prices / Reset descriptions on sale order lines",
"version": "16.0.1.0.0",
"category": "Sales Management",
"website": "https://github.com/OCA/sale-workflow",
"author": "AvanzOSC,"
"Grupo Vermon,"
"Tecnativa,"
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sale"],
"data": ["views/sale_order_view.xml"],
}
39 changes: 39 additions & 0 deletions sale_order_price_recalculation/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_price_recalculation
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-25 02:52+0000\n"
"PO-Revision-Date: 2017-04-25 02:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\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"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Recalculate prices"
msgstr ""

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Reset descriptions"
msgstr ""

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
msgid "Sales Order"
msgstr ""

#, fuzzy
#~| msgid "Sales Order"
#~ msgid "Sale Order"
#~ msgstr "Comandes de venda"
38 changes: 38 additions & 0 deletions sale_order_price_recalculation/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_price_recalculation
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-09 12:27+0000\n"
"PO-Revision-Date: 2019-07-15 16:43+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/de/)\n"
"Language: de\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 3.7.1\n"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Recalculate prices"
msgstr "Preise neu berechnen"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Reset descriptions"
msgstr "Beschreibung zurücksetzen"

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
msgid "Sales Order"
msgstr ""

#~ msgid "Sale Order"
#~ msgstr "Verkaufsauftrag"
40 changes: 40 additions & 0 deletions sale_order_price_recalculation/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_price_recalculation
#
# Translators:
# Kostas Goutoudis <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-25 02:52+0000\n"
"PO-Revision-Date: 2017-04-25 02:52+0000\n"
"Last-Translator: Kostas Goutoudis <[email protected]>, 2017\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
"el_GR/)\n"
"Language: el_GR\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"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Recalculate prices"
msgstr ""

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Reset descriptions"
msgstr ""

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
msgid "Sales Order"
msgstr ""

#, fuzzy
#~| msgid "Sales Order"
#~ msgid "Sale Order"
#~ msgstr "Εντολή Πώλησης"
38 changes: 38 additions & 0 deletions sale_order_price_recalculation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_price_recalculation
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-09 12:27+0000\n"
"PO-Revision-Date: 2022-05-31 06:38+0000\n"
"Last-Translator: Pedro M. Baeza <[email protected]>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/es/)\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.3.2\n"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Recalculate prices"
msgstr "Recalcular precios"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Reset descriptions"
msgstr "Restablecer descripciones"

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
msgid "Sales Order"
msgstr ""

#~ msgid "Sale Order"
#~ msgstr "Pedido de venta"
40 changes: 40 additions & 0 deletions sale_order_price_recalculation/i18n/es_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_price_recalculation
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-25 02:52+0000\n"
"PO-Revision-Date: 2017-04-25 02:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/"
"es_ES/)\n"
"Language: es_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"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Recalculate prices"
msgstr "Recalcular precios"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Reset descriptions"
msgstr "Restablecer descripciones"

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
msgid "Sales Order"
msgstr ""

#, fuzzy
#~| msgid "Sales Order"
#~ msgid "Sale Order"
#~ msgstr "Pedido de venta"
40 changes: 40 additions & 0 deletions sale_order_price_recalculation/i18n/es_VE.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_price_recalculation
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-25 02:52+0000\n"
"PO-Revision-Date: 2017-04-25 02:52+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/"
"teams/23907/es_VE/)\n"
"Language: es_VE\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"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Recalculate prices"
msgstr ""

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.view_order_form
msgid "Reset descriptions"
msgstr ""

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
msgid "Sales Order"
msgstr ""

#, fuzzy
#~| msgid "Sales Order"
#~ msgid "Sale Order"
#~ msgstr "Pedidos de venta"
Loading

0 comments on commit 68ba244

Please sign in to comment.