From 23dd7a786ec12c95e9eb51d56d6d870a72e802cd Mon Sep 17 00:00:00 2001 From: duongtq Date: Tue, 19 Sep 2023 15:50:20 +0700 Subject: [PATCH] [MIG] sale_order_import: Migration to 16.0 --- sale_order_import/README.rst | 15 +-- sale_order_import/__manifest__.py | 2 +- sale_order_import/models/sale.py | 7 +- sale_order_import/readme/CONTRIBUTORS.rst | 1 + sale_order_import/readme/CREDITS.rst | 2 +- .../static/description/index.html | 47 +++++----- sale_order_import/tests/common.py | 4 +- .../tests/test_parse_validate.py | 33 +++---- sale_order_import/tests/test_sale_order.py | 11 ++- sale_order_import/wizard/sale_order_import.py | 91 +++++++++---------- .../wizard/sale_order_import_view.xml | 8 +- 11 files changed, 108 insertions(+), 113 deletions(-) diff --git a/sale_order_import/README.rst b/sale_order_import/README.rst index aa8ec4a55fe..552b977e259 100644 --- a/sale_order_import/README.rst +++ b/sale_order_import/README.rst @@ -7,7 +7,7 @@ Sale Order Import !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:35292a110f9d19dbd36bec18d748fcca76a94b2a97a60d0fe563c00d4078493f + !! source digest: sha256:488cfb728bd029ca722e0084a281dfd3772ad7bd8237142ac2629be32c2493a3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Sale Order Import :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github - :target: https://github.com/OCA/edi/tree/14.0/sale_order_import + :target: https://github.com/OCA/edi/tree/16.0/sale_order_import :alt: OCA/edi .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-sale_order_import + :target: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-sale_order_import :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/edi&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -57,7 +57,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. @@ -77,11 +77,12 @@ Contributors * Dennis Sluijk * Andrea Stirpe * Simone Orsi +* Duong (Tran Quoc) Other credits ~~~~~~~~~~~~~ -The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp +The migration of this module from 13.0 to 16.0 was financially supported by Camptocamp Maintainers ~~~~~~~~~~~ @@ -96,6 +97,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/edi `_ project on GitHub. +This module is part of the `OCA/edi `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_import/__manifest__.py b/sale_order_import/__manifest__.py index d3eba309716..d49b788f1c6 100644 --- a/sale_order_import/__manifest__.py +++ b/sale_order_import/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Sale Order Import", - "version": "14.0.1.5.0", + "version": "16.0.1.0.0", "category": "Sales Management", "license": "AGPL-3", "summary": "Import RFQ or sale orders from files", diff --git a/sale_order_import/models/sale.py b/sale_order_import/models/sale.py index efd22a60a57..de2ba799c42 100644 --- a/sale_order_import/models/sale.py +++ b/sale_order_import/models/sale.py @@ -17,9 +17,10 @@ def name_get(self): # I didn't find a python method to easily display # a float + currency symbol (before or after) # depending on lang of context and currency - name += _(" Amount w/o tax: %s %s)") % ( - sale.amount_untaxed, - sale.currency_id.name, + name += _( + " Amount w/o tax: %(amount)s %(currency)s", + amount=sale.amount_untaxed, + currency=sale.currency_id.name, ) new_res.append((sale_id, name)) return new_res diff --git a/sale_order_import/readme/CONTRIBUTORS.rst b/sale_order_import/readme/CONTRIBUTORS.rst index 2185fbd75c4..b4f469eaeac 100644 --- a/sale_order_import/readme/CONTRIBUTORS.rst +++ b/sale_order_import/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Dennis Sluijk * Andrea Stirpe * Simone Orsi +* Duong (Tran Quoc) diff --git a/sale_order_import/readme/CREDITS.rst b/sale_order_import/readme/CREDITS.rst index f37ebe75704..d43b3aa6511 100644 --- a/sale_order_import/readme/CREDITS.rst +++ b/sale_order_import/readme/CREDITS.rst @@ -1 +1 @@ -The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp +The migration of this module from 13.0 to 16.0 was financially supported by Camptocamp diff --git a/sale_order_import/static/description/index.html b/sale_order_import/static/description/index.html index 27397df46ea..baf51e7d45b 100644 --- a/sale_order_import/static/description/index.html +++ b/sale_order_import/static/description/index.html @@ -1,20 +1,20 @@ - + - + Sale Order Import