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 @@

Sale Order Line Delivery State

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:5cf5407b168f49a6b8b3ae8cebd6c0acee426ef85373799140348c0c1364c1e3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

-

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.

+

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runboat

+

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.

Table of contents

    @@ -398,7 +401,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.

@@ -418,11 +421,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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/tests/test_sale_line_delivery_state.py b/sale_order_line_delivery_state/tests/test_sale_line_delivery_state.py index fd115d983e47..fb4e1405daed 100644 --- a/sale_order_line_delivery_state/tests/test_sale_line_delivery_state.py +++ b/sale_order_line_delivery_state/tests/test_sale_line_delivery_state.py @@ -14,7 +14,7 @@ def setUpClass(cls): # Base data partner = cls.env.ref("base.res_partner_2") product = cls.env.ref("product.product_product_25") - pricelist = cls.env.ref("product.list0") + pricelist = cls.env["product.pricelist"].create({"name": "Test Pricelist"}) cls.uom = cls.env.ref("uom.product_uom_unit") # Create delivery product cls.delivery_cost = cls.env["product.product"].create( diff --git a/sale_order_line_delivery_state/views/sale_order_views.xml b/sale_order_line_delivery_state/views/sale_order_views.xml index cb94bddfcb39..e83966eb5389 100644 --- a/sale_order_line_delivery_state/views/sale_order_views.xml +++ b/sale_order_line_delivery_state/views/sale_order_views.xml @@ -18,14 +18,14 @@ type="object" string="Force delivery done" states="done" - attrs="{'invisible': ['|', ('force_delivery_state', '=', True), ('delivery_state', '=', 'done')]}" + invisible="['|', ('force_delivery_state', '=', True), ('delivery_state', '=', 'done')]" />