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

[FIX] discount recompute reset #3

Open
wants to merge 25 commits into
base: 13.0-mig-sale_order_price_recalculation-dro
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
597f6f2
[ADD] sale_order_recalculate_prices: Module to allow to recalculate o…
pedrobaeza Oct 31, 2014
997e7da
[IMP] sale_order_price_recalculation
Sep 18, 2015
7c22ceb
sale_order_price_recalculation module
cubells Dec 16, 2016
d626f71
[MIG] sale_order_price_recalculation: Migration to 10.0
chienandalu Jul 11, 2017
cd83d9f
OCA Transbot updated translations from Transifex
oca-transbot Sep 13, 2015
b28d349
[MIG] sale_order_price_recalculation: Migration to 11.0
Dec 20, 2017
970ded8
[UPD] Update sale_order_price_recalculation.pot
oca-travis Jun 22, 2018
0ac884e
[FIX] position of button is not good with note field
fmdl Oct 8, 2018
2e85e77
Update translation files
oca-transbot Dec 2, 2018
e06eef5
[MIG] sale_order_price_recalculation: Migration to 12.0
rven Dec 26, 2018
5cb276a
[IMP] sale_order_price_recalculation: Make tests deterministic
pedrobaeza Feb 21, 2019
aec103f
[11.0][FIX] sale_order_price_recalculation: set discount from priceli…
sergio-teruel Apr 29, 2019
3fe951a
[UPD] README.rst
OCA-git-bot May 16, 2019
857458a
[UPD] Update sale_order_price_recalculation.pot
oca-travis May 16, 2019
e1a5e26
[FIX] sale_order_price_recalculation: Use write instead of update
pedrobaeza May 19, 2019
6ce21f2
Update translation files
oca-transbot May 20, 2019
36527c4
Translated using Weblate (German)
marylla Jul 15, 2019
9eecde9
[UPD] README.rst
OCA-git-bot Jul 29, 2019
b336224
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
3c172f2
Translated using Weblate (Portuguese (Brazil))
Sep 17, 2019
7d68b77
Translated using Weblate (Italian)
francesco-ooops Apr 24, 2020
852f6d9
[IMP] sale_order_price_recalculation: black, isort, prettier
rousseldenis May 28, 2020
d1ae667
[13.0][MIG] sale_order_price_recalculation
rousseldenis May 28, 2020
dc412cf
[13.0][FIX] sale_order_price_recalculation: Use onchange_helper
rousseldenis Jun 5, 2020
d237076
[FIX] discount recompute reset
vrenaville May 31, 2021
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
114 changes: 114 additions & 0 deletions sale_order_price_recalculation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
===================================
Price recalculation in sales orders
===================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/10.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-10-0/sale-workflow-10-0-sale_order_price_recalculation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/167/10.0
:alt: Try me on Runbot

|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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_price_recalculation%0Aversion:%2010.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]>
* Denis Roussel <[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/10.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 Pedro M. Baeza <[email protected]>
# 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": "13.0.1.0.0",
"category": "Sales Management",
"website": "http://github.com/OCA/sale-workflow",
"author": "AvanzOSC,"
"Grupo Vermon,"
"Tecnativa,"
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sale", "product", "onchange_helper"],
"data": ["views/sale_order_view.xml"],
}
36 changes: 36 additions & 0 deletions sale_order_price_recalculation/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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.sorp_view_order_form
msgid "Recalculate prices"
msgstr ""

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

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
#, fuzzy
#| msgid "Sales Order"
msgid "Sale Order"
msgstr "Comandes de venda"
35 changes: 35 additions & 0 deletions sale_order_price_recalculation/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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.sorp_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.sorp_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 "Sale Order"
msgstr "Verkaufsauftrag"
37 changes: 37 additions & 0 deletions sale_order_price_recalculation/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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.sorp_view_order_form
msgid "Recalculate prices"
msgstr ""

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

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
#, fuzzy
#| msgid "Sales Order"
msgid "Sale Order"
msgstr "Εντολή Πώλησης"
36 changes: 36 additions & 0 deletions sale_order_price_recalculation/i18n/en.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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-10-02 17:59+0000\n"
"PO-Revision-Date: 2015-09-28 12:51+0000\n"
"Last-Translator: OCA Transbot <[email protected]>\n"
"Language-Team: English (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/en/)\n"
"Language: en\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.sorp_view_order_form
msgid "Recalculate prices"
msgstr "Recalculate prices"

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

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
#, fuzzy
#| msgid "Sales Order"
msgid "Sale Order"
msgstr "Sales Order"
37 changes: 37 additions & 0 deletions sale_order_price_recalculation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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: 2015-09-03 07:09+0000\n"
"Last-Translator: OCA Transbot <[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"

#. module: sale_order_price_recalculation
#: model_terms:ir.ui.view,arch_db:sale_order_price_recalculation.sorp_view_order_form
#, fuzzy
msgid "Recalculate prices"
msgstr "(Recalcular precios)"

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

#. module: sale_order_price_recalculation
#: model:ir.model,name:sale_order_price_recalculation.model_sale_order
#, fuzzy
#| msgid "Sales Order"
msgid "Sale Order"
msgstr "Pedido de venta"
37 changes: 37 additions & 0 deletions sale_order_price_recalculation/i18n/es_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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.sorp_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.sorp_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
#, fuzzy
#| msgid "Sales Order"
msgid "Sale Order"
msgstr "Pedido de venta"
Loading