From 46fa1f62830afde22dd76d6830f69a698264ead2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Vall=C3=A9s=20Fuster?= Date: Wed, 6 Mar 2024 08:32:41 +0100 Subject: [PATCH] [IMP] rma: pre-commit auto fixes --- rma/README.rst | 53 +++++++++++++++++++++++++++------ rma/__manifest__.py | 2 +- rma/pyproject.toml | 3 ++ rma/tests/test_rma.py | 1 - rma/wizards/rma_make_picking.py | 3 +- 5 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 rma/pyproject.toml diff --git a/rma/README.rst b/rma/README.rst index 4cf46b44..f5d28676 100644 --- a/rma/README.rst +++ b/rma/README.rst @@ -2,6 +2,32 @@ RMA (Return Merchandise Authorization) ====================================== +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2a063cc1f6e65fa97dd68c83a5086cedca60cc1110a9a8c7fa55a665f6341339 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2F-lightgray.png?logo=github + :target: https://github.com/OCA//tree/17.0/rma + :alt: OCA/ +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/-17-0/-17-0-rma + :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/&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + A Return Merchandise Authorization (RMA), is a part of the process of returning a product in order to receive a refund, replacement, or repair during the product's warranty period. @@ -30,7 +56,7 @@ Configuration ============= Security -~~~~~~~~ +-------- Go to Settings > Users and assign the appropiate permissions to users. Different security groups grant distinct levels of access to the RMA features. @@ -42,7 +68,7 @@ Different security groups grant distinct levels of access to the RMA features. associated to both customers and suppliers. RMA Approval Policy -~~~~~~~~~~~~~~~~~~~ +------------------- There are two RMA approval policies in product catogories: @@ -58,7 +84,7 @@ steps: #. Select one and change the field *RMA Approval Policy* to your convenience. Other Settings -~~~~~~~~~~~~~~ +-------------- #. Go to RMA > Configuration > Settings > Return Merchandising Authorization and select the option "Display 3 fields on rma: partner, @@ -100,10 +126,10 @@ Known issues / Roadmap Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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 smashing it by providing a detailed and welcomed -`feedback `_. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -113,7 +139,7 @@ Credits Authors ~~~~~~~ -* ForgeFlow S.L. +* ForgeFlow Contributors ~~~~~~~~~~~~ @@ -130,7 +156,16 @@ Contributors Maintainers ~~~~~~~~~~~ -This module is maintained by the ForgeFlow. +This module is maintained by the OCA. -This module is part of the `ForgeFlow/stock-rma `_ project on GitHub. +.. 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/ `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/rma/__manifest__.py b/rma/__manifest__.py index 015ed11d..90647fcd 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -8,7 +8,7 @@ "category": "RMA", "summary": "Introduces the return merchandise authorization (RMA) process in odoo", "author": "ForgeFlow", - "website": "https://github.com/ForgeFlow/stock-rma", + "website": "https://github.com/OCA/", "depends": ["stock", "mail", "web"], "demo": ["demo/stock_demo.xml"], "data": [ diff --git a/rma/pyproject.toml b/rma/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/rma/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/rma/tests/test_rma.py b/rma/tests/test_rma.py index 35059202..63a1c9e8 100644 --- a/rma/tests/test_rma.py +++ b/rma/tests/test_rma.py @@ -221,7 +221,6 @@ class TestRma(common.TransactionCase): def _create_rma_from_move( cls, products2move, r_type, partner, dropship, supplier_address_id=None ): - moves = [] if r_type == "customer": picking_type = cls._get_picking_type( diff --git a/rma/wizards/rma_make_picking.py b/rma/wizards/rma_make_picking.py index 0b92b1d8..3939fae9 100644 --- a/rma/wizards/rma_make_picking.py +++ b/rma/wizards/rma_make_picking.py @@ -5,7 +5,8 @@ import time from odoo import _, api, fields, models from odoo.exceptions import UserError, ValidationError -from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DT_FORMAT, float_compare +from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DT_FORMAT +from odoo.tools import float_compare class RmaMakePicking(models.TransientModel):