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

Syncing from upstream OCA/sale-workflow (18.0) #2279

Merged
merged 36 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8e3b8af
sale_order_line_price_history: add price history in sale order line
ernestotejeda Mar 19, 2019
ab5f7f7
[12.0][MIG] sale_order_line_price_history
murtuzasaleh May 6, 2019
a53af29
Added translation using Weblate (German)
marylla Jul 15, 2019
c87302c
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
873618f
Translated using Weblate (Spanish)
Galoperd Jan 25, 2020
666c85f
[IMP] sale_order_line_price_history: Add discount to the history
Jun 16, 2020
20d3136
[IMP] sale_order_line_price_history: hide partner column dynamically
Jun 16, 2020
79940cd
[FIX] sale_order_line_price_history: set 'unit price' + 'discount'
Aug 20, 2020
fb62df3
Added translation using Weblate (Portuguese)
pedrocs-exo Sep 15, 2020
76b5c16
[IMP] : black, isort, prettier
dennybiasiolli Oct 13, 2020
a9e729d
[MIG] sale_order_line_price_history: Migration to 13.0
dennybiasiolli Oct 12, 2020
b8cf647
[IMP] sale_order_line_price_history: turn into a widget
chienandalu May 14, 2021
68d1bb1
[IMP] sale_order_line_price_history: isort, black, prettier.
dsolanki-initos Jun 17, 2021
1bfb696
[MIG] Migrate module sale_order_line_price_history to v14.
dsolanki-initos Jun 17, 2021
639b426
[MIG] sale_order_line_price_history: Migration to 15.0
Jul 15, 2022
3bc4ccb
[FIX] sale_order_line_price_history: show a traditional button in SOL…
Jul 17, 2022
7971585
[MIG] sale_order_line_price_history: Migration to 16.0
Yadier-Tecnativa Apr 27, 2023
fb17769
Translated using Weblate (Spanish)
Ivorra78 Jul 25, 2023
a9ccd27
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
7b433f2
Added translation using Weblate (Italian)
mymage Dec 7, 2023
0a42701
[FIX] sale_order_line_price_history: Set history price from wizard tree
Shide Jan 17, 2024
f860226
[FIX] sale_order_line_price_history: OWL component with onchange
dariodelzozzo Jan 22, 2024
f16134e
Translated using Weblate (Italian)
mymage Jan 24, 2024
c0e3d7e
Translated using Weblate (Spanish)
Ivorra78 Feb 12, 2024
ddc4cb3
Translated using Weblate (Italian)
mymage Mar 28, 2024
24bad9b
[FIX] sale_order_line_price_history: Increase view priority
Shide Apr 24, 2024
961475e
Translated using Weblate (Portuguese (Brazil))
May 21, 2024
330a67e
[IMP] sale_order_line_price_history: pre-commit auto fixes
Aug 29, 2024
c14db2b
[MIG] sale_order_line_price_history: Migration to 17.0
Aug 29, 2024
7abfba4
[FIX] sale_order_line_price_history: Add button to kanban view
Shide Jan 27, 2025
422c682
[IMP] sale_order_line_price_history: pre-commit auto fixes
CarlosRoca13 Jan 27, 2025
99a20cc
[MIG] sale_order_line_price_history: Migration to 18.0
CarlosRoca13 Jan 28, 2025
72701de
Merge PR #3549 into 18.0
OCA-git-bot Feb 19, 2025
58fa34e
[UPD] Update sale_order_line_price_history.pot
Feb 19, 2025
b55c96d
[BOT] post-merge updates
OCA-git-bot Feb 19, 2025
4f8e06c
Update translation files
weblate Feb 19, 2025
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ addon | version | maintainers | summary
[sale_force_invoiced](sale_force_invoiced/) | 18.0.1.0.0 | | Allows to force the invoice status of the sales order to Invoiced
[sale_order_line_date](sale_order_line_date/) | 18.0.1.0.0 | | Adds a commitment date to each sale order line.
[sale_order_line_menu](sale_order_line_menu/) | 18.0.1.0.0 | | Adds a Sale Order Lines Menu
[sale_order_line_price_history](sale_order_line_price_history/) | 18.0.1.0.0 | [![CarlosRoca13](https://github.com/CarlosRoca13.png?size=30px)](https://github.com/CarlosRoca13) [![Shide](https://github.com/Shide.png?size=30px)](https://github.com/Shide) | Sale order line price history
[sale_order_product_availability_inline](sale_order_product_availability_inline/) | 18.0.1.0.0 | [![ernestotejeda](https://github.com/ernestotejeda.png?size=30px)](https://github.com/ernestotejeda) | Show product availability in sales order line product drop-down.
[sale_order_type](sale_order_type/) | 18.0.1.0.0 | | Sale Order Type
[sale_partner_selectable_option](sale_partner_selectable_option/) | 18.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Sale Partner Selectable Option
Expand Down
125 changes: 125 additions & 0 deletions sale_order_line_price_history/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
=============================
Sale order line price history
=============================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/18.0/sale_order_line_price_history
: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-18-0/sale-workflow-18-0-sale_order_line_price_history
: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=18.0
:alt: Try me on Runboat

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

This module extends the functionality of Sales to allow you to see the
price history of a product from a sale order line and set one of these
old prices in the sale order line.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to System Parameters and configure the
``sale_order_line_price_history.order_line_limit`` parameter to limit
the number of Sale Order Lines to show on the Wizard.
2. Go to *Sales -> Quotations* and select a Quotation. Default is 20
lines.
3. Click on the new clock button in one of the sale order lines.
4. A pop-up will open and you will see the *price history* for the
product of the sale order line and for the customer of the sale
order.
5. You can select other customer or leave it empty to see the price
history for all customers.
6. You can also set the price of one of the price history lines in the
sale order line. To do that, you have to open the price history line
desired and click the smart button named *Set price*.

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

- A backend tour would be nice to have.

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_line_price_history%0Aversion:%2018.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
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Ernesto Tejeda
- David Vidal
- Carlos Roca

- Serpent Consulting Services Pvt. Ltd. <[email protected]>
- Dhara Solanki <[email protected]>
- Ruchir Shukla <[email protected]>
- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
- Sodexis Team <[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.

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

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

|maintainer-CarlosRoca13| |maintainer-Shide|

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_price_history>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_order_line_price_history/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
from . import wizards
25 changes: 25 additions & 0 deletions sale_order_line_price_history/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Sale order line price history",
"version": "18.0.1.0.0",
"category": "Sales Management",
"author": "Tecnativa,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"license": "AGPL-3",
"depends": ["sale"],
"development_status": "Production/Stable",
"data": [
"security/ir.model.access.csv",
"wizards/sale_order_line_price_history.xml",
"views/sale_views.xml",
],
"assets": {
"web.assets_backend": [
"sale_order_line_price_history/static/src/js/*.js",
"sale_order_line_price_history/static/src/xml/*.xml",
],
},
"maintainers": ["CarlosRoca13", "Shide"],
"installable": True,
}
221 changes: 221 additions & 0 deletions sale_order_line_price_history/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_price_history
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-15 13:43+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\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_line_price_history
#: model_terms:ir.ui.view,arch_db:sale_order_line_price_history.sale_order_line_price_history_view_form
msgid "Close"
msgstr "Schließen"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__create_uid
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__create_uid
msgid "Created by"
msgstr "Erstellt von"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__create_date
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__create_date
msgid "Created on"
msgstr "Erstellt am"

#. module: sale_order_line_price_history
#: model:ir.model.fields,help:sale_order_line_price_history.field_sale_order_line_price_history_line__sale_order_date_order
msgid ""
"Creation date of draft/sent orders,\n"
"Confirmation date of confirmed orders."
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line__order_partner_id
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__partner_id
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__partner_id
msgid "Customer"
msgstr "Kunde"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__discount
msgid "Discount (%)"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__display_name
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__display_name
msgid "Display Name"
msgstr "Anzeigename"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__history_id
msgid "History"
msgstr "Historie"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__line_ids
msgid "History lines"
msgstr "Historienzeilen"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__id
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__id
msgid "ID"
msgstr "ID"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__include_quotations
msgid "Include Quotations"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__include_commercial_partner
msgid "Include commercial entity"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,help:sale_order_line_price_history.field_sale_order_line_price_history__include_commercial_partner
msgid "Include commercial entity and its contacts in the sale history"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,help:sale_order_line_price_history.field_sale_order_line_price_history__include_quotations
msgid "Include quotations lines in the sale history"
msgstr ""
"Wenn der Haken gesetzt ist, werden auch die Positionen aus Angeboten "
"angezeigt."

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__write_uid
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__write_uid
msgid "Last Updated by"
msgstr "Zuletzt aktualisiert von"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__write_date
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__write_date
msgid "Last Updated on"
msgstr "Zuletzt aktualisiert am"

#. module: sale_order_line_price_history
#. odoo-python
#: code:addons/sale_order_line_price_history/wizards/sale_order_line_price_history.py:0
msgid "Not found historical sale order line for this action!"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__sale_order_date_order
msgid "Order Date"
msgstr "Auftragsdatum"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__order_id
msgid "Order Reference"
msgstr "Auftragsnummer"

#. module: sale_order_line_price_history
#. odoo-javascript
#: code:addons/sale_order_line_price_history/static/src/xml/sale_line_price_history_widget.xml:0
#: model_terms:ir.ui.view,arch_db:sale_order_line_price_history.sale_order_line_price_history_view_form
#: model_terms:ir.ui.view,arch_db:sale_order_line_price_history.view_order_form
msgid "Price History"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.actions.act_window,name:sale_order_line_price_history.sale_order_line_price_history_action
msgid "Price history per customer"
msgstr "Preishistorie pro Kunde"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__product_id
msgid "Product"
msgstr "Produkt"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__product_uom_qty
msgid "Quantity"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__sale_order_line_id
msgid "Sale Order Line"
msgstr ""

#. module: sale_order_line_price_history
#: model_terms:ir.ui.view,arch_db:sale_order_line_price_history.sale_order_line_price_history_view_form
msgid "Sale history"
msgstr "Verkaufshistorie"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history__sale_order_line_id
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__target_sale_order_line_id
msgid "Sale order line"
msgstr "Auftragszeile"

#. module: sale_order_line_price_history
#: model:ir.model,name:sale_order_line_price_history.model_sale_order_line_price_history
msgid "Sale order line price history"
msgstr "Preishistorie der Auftragszeile"

#. module: sale_order_line_price_history
#: model:ir.model,name:sale_order_line_price_history.model_sale_order_line_price_history_line
msgid "Sale order line price history line"
msgstr "Preishistorienzeile der Auftragszeile"

#. module: sale_order_line_price_history
#: model:ir.model,name:sale_order_line_price_history.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_order_line_price_history
#. odoo-javascript
#: code:addons/sale_order_line_price_history/static/src/xml/set_price_to_line_widget.xml:0
msgid "Set Historic Price"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__order_state
msgid "Status"
msgstr ""

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__price_unit
msgid "Unit Price"
msgstr "Preis pro ME"

#. module: sale_order_line_price_history
#: model:ir.model.fields,field_description:sale_order_line_price_history.field_sale_order_line_price_history_line__history_sale_order_line_id
msgid "history sale order line"
msgstr "Historie der Auftragszeile"

#~ msgid "Last Modified on"
#~ msgstr "Zuletzt geändert am"

#~ msgid "Set price"
#~ msgstr "Preis verwenden"

#~ msgid "Include quotations"
#~ msgstr "Angebote berücksichtigen"

#~ msgid "Ordered Quantity"
#~ msgstr "Auftragsmenge"

#~ msgid "Price history"
#~ msgstr "Preishistorie"

#~ msgid ""
#~ "You can find a customer by its Name, TIN, Email or Internal Reference."
#~ msgstr ""
#~ "Ein Kunde kann anhand seines Namens, seiner Steuer-ID, Emailadresse oder "
#~ "internen Referenz gefunden werden."
Loading