diff --git a/rma_reason_code/README.rst b/rma_reason_code/README.rst index 7b1d0aba..cd5604c5 100644 --- a/rma_reason_code/README.rst +++ b/rma_reason_code/README.rst @@ -1,47 +1,61 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License LGPL-3 +=============== +RMA Reason Code +=============== -============ -RMA Put Away -============ +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7fe458ca9d7af3377506c22b519e03a0a8175169e7939409a36821718e03392a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -This module allows you to put away the products after you have received them. +.. |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-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-ForgeFlow%2Fstock--rma-lightgray.png?logo=github + :target: https://github.com/ForgeFlow/stock-rma/tree/17.0/rma_reason_code + :alt: ForgeFlow/stock-rma -Configuration -============= +|badge1| |badge2| |badge3| -Go to *RMA / Configuration / Customer Operations* and define there: +Adds a reason code for RMA operations and an interface for the user to +create RMA codes -#. The Put Away Policy -#. The route that you wish to use to put away the products. -#. The default destination location (optional). +**Table of contents** -Usage -===== - -#. Go to a Customer RMA. -#. Click on *Put Away*. -#. Indicate the quantity that you want to put away and destination location. +.. contents:: + :local: 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 smashing it by providing a detailed and welcomed feedback. +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 `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +------- + +* ForgeFlow + Contributors ------------ -* Jordi Ballester Alomar -* David Jimenez +- David Jiménez +Maintainers +----------- -Maintainer ----------- +This module is part of the `ForgeFlow/stock-rma `_ project on GitHub. -This module is maintained by ForgeFlow +You are welcome to contribute. diff --git a/rma_reason_code/__manifest__.py b/rma_reason_code/__manifest__.py index b12431e0..01b7ab7c 100644 --- a/rma_reason_code/__manifest__.py +++ b/rma_reason_code/__manifest__.py @@ -6,7 +6,7 @@ "license": "AGPL-3", "summary": "Reason code for RMA", "author": "ForgeFlow", - "website": "https://github.com/ForgeFlow/stock-rma", + "website": "https://github.com/ForgeFlow", "category": "Warehouse Management", "depends": ["rma"], "data": [ diff --git a/rma_reason_code/pyproject.toml b/rma_reason_code/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/rma_reason_code/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/rma_reason_code/readme/CONTRIBUTORS.md b/rma_reason_code/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..ac18283b --- /dev/null +++ b/rma_reason_code/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- David Jiménez \<\> diff --git a/rma_reason_code/readme/CONTRIBUTORS.rst b/rma_reason_code/readme/CONTRIBUTORS.rst deleted file mode 100644 index fcd08101..00000000 --- a/rma_reason_code/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* David Jiménez diff --git a/rma_reason_code/readme/DESCRIPTION.rst b/rma_reason_code/readme/DESCRIPTION.md similarity index 72% rename from rma_reason_code/readme/DESCRIPTION.rst rename to rma_reason_code/readme/DESCRIPTION.md index 041c4317..be1008fa 100644 --- a/rma_reason_code/readme/DESCRIPTION.rst +++ b/rma_reason_code/readme/DESCRIPTION.md @@ -1 +1,2 @@ -Adds a reason code for RMA operations and an interface for the user to create RMA codes +Adds a reason code for RMA operations and an interface for the user to +create RMA codes diff --git a/rma_reason_code/reports/rma_reason_code_report.py b/rma_reason_code/reports/rma_reason_code_report.py index b0f87364..cb6d1b27 100644 --- a/rma_reason_code/reports/rma_reason_code_report.py +++ b/rma_reason_code/reports/rma_reason_code_report.py @@ -32,7 +32,8 @@ class RmaReasonCodeReport(models.Model): FROM rma_order_line rma INNER JOIN - rma_order_line_reason_code_rel rolr ON rma.id = rolr.rma_order_line_id + rma_order_line_reason_code_rel rolr + ON rma.id = rolr.rma_order_line_id INNER JOIN rma_reason_code rrc ON rolr.rma_reason_code_id = rrc.id @@ -46,10 +47,8 @@ class RmaReasonCodeReport(models.Model): @property def _table_query(self): - return """ - {_select} - {_from} - {_order_by} - """.format( - _select=self._select(), _from=self._from(), _order_by=self._order_by() - ) + return f""" + {self._select()} + {self._from()} + {self._order_by()} + """ diff --git a/rma_reason_code/static/description/index.html b/rma_reason_code/static/description/index.html index 12dd1e4c..d4b9528a 100644 --- a/rma_reason_code/static/description/index.html +++ b/rma_reason_code/static/description/index.html @@ -1,20 +1,19 @@ - - -Scrap Reason Code + +RMA Reason Code -
-

Scrap Reason Code

+
+

RMA Reason Code

-

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runbot

-

Adds a reason code for scrapping operations and an interface for the user -to create scrap codes

+

Beta License: AGPL-3 ForgeFlow/stock-rma

+

Adds a reason code for RMA operations and an interface for the user to +create RMA codes

Table of contents

-
-

Configuration

-

Go to Inventory > Configuration > Scrap Reason Codes

-

Create a required scrap reason code and provide scrap location.

-
-
-

Usage

-
    -
  • Go to Inventory > Operations > Scrap
  • -
  • Create a scarp order and select reason code.
  • -
  • A scrap location will be readonly and auto fill based on selected reason -code.
  • -
-
-

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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

-

Credits

+

Credits

-

Authors

+

Authors

    -
  • Open Source Integrators
  • +
  • ForgeFlow
-

Contributors

+

Contributors

-
-
-

Other credits

-

The development of this module has been financially supported by:

-
-

Maintainers

-

This module is maintained by the OCA.

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

-

Current maintainer:

-

bodedra

-

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

-

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

+

Maintainers

+

This module is part of the ForgeFlow/stock-rma project on GitHub.

+

You are welcome to contribute.

diff --git a/rma_reason_code/tests/test_scrap_reason_code.py b/rma_reason_code/tests/test_scrap_reason_code.py index 1c896ab3..71f00693 100644 --- a/rma_reason_code/tests/test_scrap_reason_code.py +++ b/rma_reason_code/tests/test_scrap_reason_code.py @@ -9,7 +9,7 @@ from odoo.tests import common class RMAOrderLine(common.SavepointCase): @classmethod def setUpClass(cls): - super(RMAOrderLine, cls).setUpClass() + super().setUpClass() cls.user_admin = cls.env.ref("base.user_admin") cls.env = api.Environment(cls.cr, cls.user_admin.id, {}) cls.user_admin.tz = False # Make sure there's no timezone in user