From eac4ac934bc072905d4fe50bfed83727eacad371 Mon Sep 17 00:00:00 2001
From: Ruchir Shukla
Date: Sat, 28 Sep 2024 15:24:54 +0530
Subject: [PATCH] [MIG] sale_order_line_delivery_state: Migration to 17.0
---
sale_order_line_delivery_state/README.rst | 41 ++++++++++---------
.../__manifest__.py | 2 +-
sale_order_line_delivery_state/pyproject.toml | 3 ++
.../readme/CONTRIBUTORS.md | 1 +
.../readme/CONTRIBUTORS.rst | 1 -
.../readme/DESCRIPTION.md | 18 ++++++++
.../readme/DESCRIPTION.rst | 15 -------
.../static/description/index.html | 41 +++++++++++--------
.../tests/test_sale_line_delivery_state.py | 2 +-
.../views/sale_order_views.xml | 4 +-
10 files changed, 71 insertions(+), 57 deletions(-)
create mode 100644 sale_order_line_delivery_state/pyproject.toml
create mode 100644 sale_order_line_delivery_state/readme/CONTRIBUTORS.md
delete mode 100644 sale_order_line_delivery_state/readme/CONTRIBUTORS.rst
create mode 100644 sale_order_line_delivery_state/readme/DESCRIPTION.md
delete mode 100644 sale_order_line_delivery_state/readme/DESCRIPTION.rst
diff --git a/sale_order_line_delivery_state/README.rst b/sale_order_line_delivery_state/README.rst
index 2767171ddf3b..75930643f492 100644
--- a/sale_order_line_delivery_state/README.rst
+++ b/sale_order_line_delivery_state/README.rst
@@ -17,32 +17,35 @@ Sale Order Line Delivery State
: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_line_delivery_state
+ :target: https://github.com/OCA/sale-workflow/tree/17.0/sale_order_line_delivery_state
: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_line_delivery_state
+ :target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_order_line_delivery_state
: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
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
-This odoo module add delivery state on the sale order line. It is based on the
-module sale_delivery_state, which adds the field at sale order level.
+This odoo module add delivery state on the sale order line. It is based
+on the module sale_delivery_state, which adds the field at sale order
+level.
-Delivery state is computed based on `qty_delivered` field on sale order line.
+Delivery state is computed based on qty_delivered field on sale order
+line.
-The state of the sale order line can be forced to fully delivered in case
-some quantities were cancelled by the customer and you consider you have
-nothing more to deliver.
+The state of the sale order line can be forced to fully delivered in
+case some quantities were cancelled by the customer and you consider you
+have nothing more to deliver.
-Sale order lines can have products or services, as long as the field `qty_delivered`
-is set, it will trigger the computation of delivery state.
+Sale order lines can have products or services, as long as the field
+qty_delivered is set, it will trigger the computation of delivery state.
This module also works with delivery.carrier fees that are added as a
-sale order line. Thoses line are special as they will never be considered delivered.
-Delivery fees lines are ignored in the computation of the delivery state.
+sale order line. Thoses line are special as they will never be
+considered delivered. Delivery fees lines are ignored in the computation
+of the delivery state.
**Table of contents**
@@ -55,7 +58,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -63,17 +66,17 @@ Credits
=======
Authors
-~~~~~~~
+-------
* ForgeFlow
Contributors
-~~~~~~~~~~~~
+------------
-* Jordi Masvidal
+- Jordi Masvidal
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -85,6 +88,6 @@ 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 `_ project on GitHub.
+This module is part of the `OCA/sale-workflow `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/sale_order_line_delivery_state/__manifest__.py b/sale_order_line_delivery_state/__manifest__.py
index 70cd5f9659a2..5d8a33882c79 100644
--- a/sale_order_line_delivery_state/__manifest__.py
+++ b/sale_order_line_delivery_state/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "Sale Order Line Delivery State",
"summary": "Show the delivery state on the sale order line",
- "version": "16.0.1.0.0",
+ "version": "17.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/sale-workflow",
"author": "ForgeFlow, Odoo Community Association (OCA)",
diff --git a/sale_order_line_delivery_state/pyproject.toml b/sale_order_line_delivery_state/pyproject.toml
new file mode 100644
index 000000000000..4231d0cccb3d
--- /dev/null
+++ b/sale_order_line_delivery_state/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/sale_order_line_delivery_state/readme/CONTRIBUTORS.md b/sale_order_line_delivery_state/readme/CONTRIBUTORS.md
new file mode 100644
index 000000000000..6fd442f34fa7
--- /dev/null
+++ b/sale_order_line_delivery_state/readme/CONTRIBUTORS.md
@@ -0,0 +1 @@
+- Jordi Masvidal \<\>
diff --git a/sale_order_line_delivery_state/readme/CONTRIBUTORS.rst b/sale_order_line_delivery_state/readme/CONTRIBUTORS.rst
deleted file mode 100644
index e4263e418aab..000000000000
--- a/sale_order_line_delivery_state/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1 +0,0 @@
-* Jordi Masvidal
diff --git a/sale_order_line_delivery_state/readme/DESCRIPTION.md b/sale_order_line_delivery_state/readme/DESCRIPTION.md
new file mode 100644
index 000000000000..0dd1b950725e
--- /dev/null
+++ b/sale_order_line_delivery_state/readme/DESCRIPTION.md
@@ -0,0 +1,18 @@
+This odoo module add delivery state on the sale order line. It is based
+on the module sale_delivery_state, which adds the field at sale order
+level.
+
+Delivery state is computed based on qty_delivered field on sale order
+line.
+
+The state of the sale order line can be forced to fully delivered in
+case some quantities were cancelled by the customer and you consider you
+have nothing more to deliver.
+
+Sale order lines can have products or services, as long as the field
+qty_delivered is set, it will trigger the computation of delivery state.
+
+This module also works with delivery.carrier fees that are added as a
+sale order line. Thoses line are special as they will never be
+considered delivered. Delivery fees lines are ignored in the computation
+of the delivery state.
diff --git a/sale_order_line_delivery_state/readme/DESCRIPTION.rst b/sale_order_line_delivery_state/readme/DESCRIPTION.rst
deleted file mode 100644
index 7c8967a15c78..000000000000
--- a/sale_order_line_delivery_state/readme/DESCRIPTION.rst
+++ /dev/null
@@ -1,15 +0,0 @@
-This odoo module add delivery state on the sale order line. It is based on the
-module sale_delivery_state, which adds the field at sale order level.
-
-Delivery state is computed based on `qty_delivered` field on sale order line.
-
-The state of the sale order line can be forced to fully delivered in case
-some quantities were cancelled by the customer and you consider you have
-nothing more to deliver.
-
-Sale order lines can have products or services, as long as the field `qty_delivered`
-is set, it will trigger the computation of delivery state.
-
-This module also works with delivery.carrier fees that are added as a
-sale order line. Thoses line are special as they will never be considered delivered.
-Delivery fees lines are ignored in the computation of the delivery state.
diff --git a/sale_order_line_delivery_state/static/description/index.html b/sale_order_line_delivery_state/static/description/index.html
index 7a11a0eba26b..db5d0a44b49d 100644
--- a/sale_order_line_delivery_state/static/description/index.html
+++ b/sale_order_line_delivery_state/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -9,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -369,18 +369,21 @@
This odoo module add delivery state on the sale order line. It is based on the
-module sale_delivery_state, which adds the field at sale order level.
-
Delivery state is computed based on qty_delivered field on sale order line.
-
The state of the sale order line can be forced to fully delivered in case
-some quantities were cancelled by the customer and you consider you have
-nothing more to deliver.
-
Sale order lines can have products or services, as long as the field qty_delivered
-is set, it will trigger the computation of delivery state.
+
+
This odoo module add delivery state on the sale order line. It is based
+on the module sale_delivery_state, which adds the field at sale order
+level.
+
Delivery state is computed based on qty_delivered field on sale order
+line.
+
The state of the sale order line can be forced to fully delivered in
+case some quantities were cancelled by the customer and you consider you
+have nothing more to deliver.
+
Sale order lines can have products or services, as long as the field
+qty_delivered is set, it will trigger the computation of delivery state.
This module also works with delivery.carrier fees that are added as a
-sale order line. Thoses line are special as they will never be considered delivered.
-Delivery fees lines are ignored in the computation of the delivery state.
+sale order line. Thoses line are special as they will never be
+considered delivered. Delivery fees lines are ignored in the computation
+of the delivery state.
Bugs are tracked on GitHub 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.
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.