From 7596f8529f700b84404a05bcc44b446b59ed0a8b Mon Sep 17 00:00:00 2001 From: pau Date: Tue, 6 Jun 2023 16:47:42 +0200 Subject: [PATCH] [MIG] sale_line_returned_qty: Migration to 16.0 --- sale_line_returned_qty/README.rst | 8 ++++---- sale_line_returned_qty/__manifest__.py | 2 +- sale_line_returned_qty/readme/CONTRIBUTORS.rst | 1 + sale_line_returned_qty/readme/DESCRIPTION.rst | 2 +- sale_line_returned_qty/static/description/index.html | 4 ++-- .../tests/test_sale_line_returned_qty.py | 4 ++-- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/sale_line_returned_qty/README.rst b/sale_line_returned_qty/README.rst index acccaab6a5c5..1648e996aa51 100644 --- a/sale_line_returned_qty/README.rst +++ b/sale_line_returned_qty/README.rst @@ -14,13 +14,13 @@ Sale Line Returned Qty :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-workflow/tree/15.0/sale_line_returned_qty + :target: https://github.com/OCA/stock-logistics-workflow/tree/16.0/sale_line_returned_qty :alt: OCA/stock-logistics-workflow .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-sale_line_returned_qty + :target: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-sale_line_returned_qty :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/154/15.0 + :target: https://runbot.odoo-community.org/runbot/154/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -70,6 +70,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/stock-logistics-workflow `_ project on GitHub. +This module is part of the `OCA/stock-logistics-workflow `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_line_returned_qty/__manifest__.py b/sale_line_returned_qty/__manifest__.py index a9e53858cfe8..da1fbee0365f 100644 --- a/sale_line_returned_qty/__manifest__.py +++ b/sale_line_returned_qty/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Sale Line Returned Qty", "summary": "Track returned quantity of sale order lines.", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Sales", "website": "https://github.com/OCA/stock-logistics-workflow", "author": "ForgeFlow, Odoo Community Association (OCA)", diff --git a/sale_line_returned_qty/readme/CONTRIBUTORS.rst b/sale_line_returned_qty/readme/CONTRIBUTORS.rst index d5b90bc7d211..9a27457986db 100644 --- a/sale_line_returned_qty/readme/CONTRIBUTORS.rst +++ b/sale_line_returned_qty/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * `ForgeFlow `_: * Jordi Masvidal + * Pau Sanchez (pau.sanchez@qubiq.es) diff --git a/sale_line_returned_qty/readme/DESCRIPTION.rst b/sale_line_returned_qty/readme/DESCRIPTION.rst index 6b919add02c7..2ed504a71d52 100644 --- a/sale_line_returned_qty/readme/DESCRIPTION.rst +++ b/sale_line_returned_qty/readme/DESCRIPTION.rst @@ -1 +1 @@ -This module adds the returned quantity of sale order lines as a computed field. +This module adds the quantity returned field in the lines of the sale. The quantity appears if a return delivery note is created and validated. \ No newline at end of file diff --git a/sale_line_returned_qty/static/description/index.html b/sale_line_returned_qty/static/description/index.html index fdfdf6d754b7..5608135495d4 100644 --- a/sale_line_returned_qty/static/description/index.html +++ b/sale_line_returned_qty/static/description/index.html @@ -367,7 +367,7 @@

Sale Line Returned Qty

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/stock-logistics-workflow Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/stock-logistics-workflow Translate me on Weblate Try me on Runbot

This module adds the returned quantity of sale order lines as a computed field.

Table of contents

@@ -416,7 +416,7 @@

Maintainers

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/stock-logistics-workflow project on GitHub.

+

This module is part of the OCA/stock-logistics-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/sale_line_returned_qty/tests/test_sale_line_returned_qty.py b/sale_line_returned_qty/tests/test_sale_line_returned_qty.py index 7fc0a6740a99..4ecfda9c55e2 100644 --- a/sale_line_returned_qty/tests/test_sale_line_returned_qty.py +++ b/sale_line_returned_qty/tests/test_sale_line_returned_qty.py @@ -46,7 +46,7 @@ def _return_picking(self, picking, qty, to_refund=True): def _validate_picking(self, picking): """Helper method to confirm the pickings""" - for line in picking.move_lines: + for line in picking.move_ids: line.quantity_done = line.product_uom_qty picking._action_done() @@ -57,7 +57,7 @@ def test_returned_qty(self): # Partial delivery one picking = self.order.picking_ids picking.action_assign() - picking.move_lines.quantity_done = 10.0 + picking.move_ids.quantity_done = 10.0 picking._action_done() self.assertEqual(so_line.qty_returned, 0.0) # Make a return for 5 units