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

[16.0][mig] sale_order_price_recalculation #2476

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
3bdb609
[ADD] sale_order_recalculate_prices: Module to allow to recalculate o…
pedrobaeza Oct 31, 2014
2224d91
[IMP] sale_order_price_recalculation
Sep 18, 2015
6c2d9bc
sale_order_price_recalculation module
cubells Dec 16, 2016
d29a70a
[MIG] sale_order_price_recalculation: Migration to 10.0
chienandalu Jul 11, 2017
d3cea0e
OCA Transbot updated translations from Transifex
oca-transbot Sep 13, 2015
8e51eed
[MIG] sale_order_price_recalculation: Migration to 11.0
Dec 20, 2017
cfb22c6
[FIX] position of button is not good with note field
fmdl Oct 8, 2018
231b3aa
[MIG] sale_order_price_recalculation: Migration to 12.0
rven Dec 26, 2018
50ed1ed
[IMP] sale_order_price_recalculation: Make tests deterministic
pedrobaeza Feb 21, 2019
8d75757
[11.0][FIX] sale_order_price_recalculation: set discount from priceli…
sergio-teruel Apr 29, 2019
807e4cd
[FIX] sale_order_price_recalculation: Use write instead of update
pedrobaeza May 19, 2019
9f663be
Translated using Weblate (German)
marylla Jul 15, 2019
2372725
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
74918f6
Translated using Weblate (Portuguese (Brazil))
Sep 17, 2019
9dc8fd0
Translated using Weblate (Italian)
francesco-ooops Apr 24, 2020
b5f61d5
[IMP] sale_order_price_recalculation : move the two buttons in the he…
legalsylvain Sep 8, 2020
b1d3d02
[IMP] : black, isort, prettier
pedrobaeza Sep 9, 2020
c005a16
[MIG] sale_order_price_recalculation: Migration to 13.0
pedrobaeza Sep 9, 2020
84a59ab
[UPD] Update sale_order_price_recalculation.pot
oca-travis Mar 14, 2022
a6a9adf
Update translation files
oca-transbot Mar 24, 2022
0e4af8c
[IMP] Update dotfiles + switch to GH actions
pedrobaeza Apr 30, 2022
3f95336
Translated using Weblate (Spanish)
pedrobaeza May 31, 2022
b3aab6b
[FIX] sale_order_price_recalculation: Buttons visibility
pedrobaeza May 31, 2022
31313fb
sale_order_price_recalculation 13.0.1.1.0
OCA-git-bot Jun 1, 2022
563289c
Update translation files
oca-transbot Jun 1, 2022
be44ca9
[MIG] sale_order_price_recalculation: Migration to 14.0
JasminSForgeFlow Jul 19, 2022
cfea561
[MIG] sale_order_price_recalculation: Migration to 15.0
JasminSForgeFlow Jul 20, 2022
19d7ec8
[UPD] Update sale_order_price_recalculation.pot
Sep 2, 2022
ea29592
[UPD] README.rst
OCA-git-bot Sep 2, 2022
ca09483
[IMP] update dotfiles [ci skip]
OCA-git-bot Dec 11, 2022
7ebd3e9
[IMP] sale_order_price_recalculation: black, isort, prettier
aktiv-heli-kantawala Apr 12, 2023
04cabe7
[MIG] sale_order_price_recalculation: Migration to 16.0
aktiv-heli-kantawala Apr 12, 2023
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
113 changes: 113 additions & 0 deletions sale_order_price_recalculation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
===================================
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/15.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-15-0/sale-workflow-15-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/15.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:%2015.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/15.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_management"],
"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