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

[18.0][MIG] sale_order_line_position: Migration to 18.0 #292

Merged
merged 26 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1fad059
13.0][ADD] sale_order_line_position
TDu Jun 11, 2021
00c5cd1
[ADD] icon.png
OCA-git-bot Sep 17, 2021
867a443
[MIG] sale_order_line_position: Migration to 14.0
Sep 23, 2021
b56566b
[13.0][FIX] sale-order-line-position
TDu Oct 11, 2021
395fdc3
sale_order_line_position 14.0.1.1.0
OCA-git-bot Jan 17, 2022
90d7675
Added translation using Weblate (German)
marylla May 11, 2022
77d4a7a
Translated using Weblate (German)
marylla May 11, 2022
ee32db3
[MIG] sale_order_line_position : Migration to 15.0
ajaniszewska-dev May 12, 2022
57281bd
[IMP] sale_order_line_position: allow to disable position recomputing
ajaniszewska-dev May 16, 2022
b968130
Added translation using Weblate (Catalan)
jabelchi Jun 3, 2022
f4c4d61
Translated using Weblate (Catalan)
jabelchi Jun 3, 2022
1c08d6f
sale_order_line_position 15.0.1.1.0
OCA-git-bot Jul 6, 2022
60bf001
Update translation files
oca-transbot Jul 6, 2022
fe8a857
[MIG] sale_order_line_position: Migration to 16.0
ajaniszewska-dev Jan 23, 2023
7048388
sale_order_line_position: fix warning on flush call
simahawk Mar 25, 2024
caa619d
[BOT] post-merge updates
OCA-git-bot Mar 25, 2024
9d5bd62
[IMP] sale_order_line_position: pre-commit auto fixes
Apr 17, 2024
dc6c707
[MIG] sale_order_line_position: Migration to 17.0
Apr 17, 2024
fa044f1
[BOT] post-merge updates
OCA-git-bot May 21, 2024
332b5e3
Added translation using Weblate (Italian)
mymage May 22, 2024
beea951
Translated using Weblate (Italian)
mymage May 22, 2024
8cde2f1
[FIX] sale_order_line_position: make sure position numer always come …
ng-ife Oct 1, 2024
744dfd5
[FIX] sale_order_line_position: use outdated bootstrap class
ng-ife Oct 1, 2024
e402be9
sale_order_line_position: split recompute_positions
simahawk Nov 30, 2022
3c24652
[IMP] sale_order_line_position: pre-commit auto fixes
Kimkhoi3010 Nov 4, 2024
1413fe0
[MIG] sale_order_line_position: Migration to 18.0
Kimkhoi3010 Nov 4, 2024
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
125 changes: 125 additions & 0 deletions sale_order_line_position/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
========================
Sale 0rder Line Position
========================

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

.. |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--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/sale-reporting/tree/18.0/sale_order_line_position
:alt: OCA/sale-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-reporting-18-0/sale-reporting-18-0-sale_order_line_position
: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-reporting&target_branch=18.0
:alt: Try me on Runboat

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

This module adds an auto computed position on sale order line. This
position number is also printed on the report.

The position can be used to keep track of each line during the delivery
and invoicing of the order with the customer. This is why there are
related modules on account-invoice-reporting and
stock-logisics-reporting.

The positions are recomputed when the sale order is printed, sent and
set to confirm.

The positions are not changed on the line after the order has been
confirmed, but if new line are added they will receive a position
number.

An action is also availabled to manually recompute the positions.

**Table of contents**

.. contents::
:local:

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

The way the positions are computed on the create of sale.order.line
record could lead to a performance issue. There is a few improvements
that have been suggested:

Remove it and handle the computation on the write and/or create method
of the sale.order.

Have a context key to enable/disable the recomputation.

Do not set any value in the position fields before the sale order lines
are locked (in the current implementation, before sending). And add a
recompute button in the UI.

Set the position values with an SQL query using a TRIGGER.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-reporting/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-reporting/issues/new?body=module:%20sale_order_line_position%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
-------

* Camptocamp

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

- Thierry Ducrest <[email protected]>
- `Trobz <https://trobz.com>`__:

- Nguyen Hoang Hiep <[email protected]>
- Do Anh Duy <[email protected]>
- Kien Kim Khoi <[email protected]>

Other credits
-------------

The migration of this module from 16.0 to 17.0 was financially supported
by Camptocamp

The migration of this module from 17.0 to 18.0 was financially supported
by:

- Camptocamp

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-reporting <https://github.com/OCA/sale-reporting/tree/18.0/sale_order_line_position>`_ 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_line_position/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions sale_order_line_position/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "Sale Order Line Position",
"summary": "Adds position number on sale order line.",
"version": "18.0.1.0.0",
"category": "Sales",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/sale-reporting",
"depends": ["sale"],
"data": [
"views/sale_order.xml",
"views/res_config_settings.xml",
"report/sale_order_report.xml",
],
"installable": True,
}
84 changes: 84 additions & 0 deletions sale_order_line_position/i18n/ca.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:
# * sale_order_line_position
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-06-03 10:05+0000\n"
"Last-Translator: jabelchi <[email protected]>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.3.2\n"

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_res_company
msgid "Companies"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_res_company__disable_sale_position_recompute
#: model:ir.model.fields,field_description:sale_order_line_position.field_res_config_settings__disable_sale_position_recompute
msgid "Do not recompute positions on sale orders"
msgstr ""

#. module: sale_order_line_position
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.res_config_settings_view_form
msgid "Do not recompute positions when line is removed"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_sale_order__locked_positions
msgid "Locked Positions"
msgstr "Posicions bloquejades"

#. module: sale_order_line_position
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.report_saleorder_document
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.view_order_form_inherit
msgid "Pos"
msgstr "Pos"

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_sale_order_line__position
msgid "Position"
msgstr "Posició"

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_sale_order_line__position_formatted
msgid "Position Formatted"
msgstr "Posició formatada"

#. module: sale_order_line_position
#: model:ir.actions.server,name:sale_order_line_position.action_compute_sale_position
msgid "Recompute positions"
msgstr "Recalcula posicions"

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_ir_actions_report
msgid "Report Action"
msgstr "Acció d'informe"

#. module: sale_order_line_position
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.res_config_settings_view_form
msgid "Sale Order Line Positions"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_sale_order
msgid "Sales Order"
msgstr "Comanda de venda"

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de venda"
93 changes: 93 additions & 0 deletions sale_order_line_position/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_position
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-05-11 12:05+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 4.3.2\n"

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_res_company
msgid "Companies"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_res_company__disable_sale_position_recompute
#: model:ir.model.fields,field_description:sale_order_line_position.field_res_config_settings__disable_sale_position_recompute
msgid "Do not recompute positions on sale orders"
msgstr ""

#. module: sale_order_line_position
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.res_config_settings_view_form
msgid "Do not recompute positions when line is removed"
msgstr ""

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_sale_order__locked_positions
msgid "Locked Positions"
msgstr "Gesperrte Positionen"

#. module: sale_order_line_position
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.report_saleorder_document
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.view_order_form_inherit
msgid "Pos"
msgstr "Pos"

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_sale_order_line__position
msgid "Position"
msgstr "Position"

#. module: sale_order_line_position
#: model:ir.model.fields,field_description:sale_order_line_position.field_sale_order_line__position_formatted
msgid "Position Formatted"
msgstr ""

#. module: sale_order_line_position
#: model:ir.actions.server,name:sale_order_line_position.action_compute_sale_position
msgid "Recompute positions"
msgstr "Positionen neuberechnen"

#. module: sale_order_line_position
#: model:ir.model,name:sale_order_line_position.model_ir_actions_report
msgid "Report Action"
msgstr ""

#. module: sale_order_line_position
#: model_terms:ir.ui.view,arch_db:sale_order_line_position.res_config_settings_view_form
msgid "Sale Order Line Positions"
msgstr ""

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

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

#~ msgid "Display Name"
#~ msgstr "Anzeigename"

#~ msgid "ID"
#~ msgstr "ID"

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