From 12601745fcd08fc8bb661ebb33e17aa4a5f52fbc Mon Sep 17 00:00:00 2001 From: Ernesto Tejeda Date: Mon, 2 Nov 2020 16:07:03 -0500 Subject: [PATCH] [MIG] product_warranty: Migration to 13.0 --- product_warranty/README.rst | 29 ++++++++++--------- product_warranty/__manifest__.py | 8 ++--- .../models/product_supplierinfo.py | 6 ++-- product_warranty/models/product_template.py | 2 +- product_warranty/models/res_company.py | 4 +-- product_warranty/models/return_instruction.py | 6 ++-- product_warranty/readme/DESCRIPTION.rst | 8 ++--- product_warranty/readme/USAGE.rst | 11 +++++-- .../static/description/index.html | 27 ++++++++--------- .../tests/test_product_warranty.py | 4 +-- product_warranty/views/product_warranty.xml | 1 - 11 files changed, 54 insertions(+), 52 deletions(-) diff --git a/product_warranty/README.rst b/product_warranty/README.rst index 4224e525..7953db07 100644 --- a/product_warranty/README.rst +++ b/product_warranty/README.rst @@ -14,23 +14,19 @@ Product Warranty :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github - :target: https://github.com/OCA/rma/tree/12.0/product_warranty + :target: https://github.com/OCA/rma/tree/13.0/product_warranty :alt: OCA/rma .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-product_warranty + :target: https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-product_warranty :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/145/12.0 + :target: https://runbot.odoo-community.org/runbot/145/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| -Extends the product warranty management with warranty details on product / -supplier relation: - -* Supplier warranty duration -* Set default return address for company (if different from standard one) -* Whether to return product to company, supplier, other +This module extends the functionality of 'Sales Management' to allows you +to set product warranty details on products and product-supplier relation. **Table of contents** @@ -40,9 +36,14 @@ supplier relation: Usage ===== -The new information is not explicitly used by the system until you install -another module that makes use of it, e.g. RMA Claim (Product Return -Management). +To use this module, you need to: + +#. Go to *Sales > Products > Products (or Product Variants)* +#. Create a new product (or product variant) or edit an existing one + and set 'Warranty Duration' under 'Sales' tab. +#. If 'Purchase' module is installed, got to + *Sales > Products > Products (or Product Variants)*, go to 'Purchase' tab, + edit supplier information lines an set the warranty information for each one. Bug Tracker =========== @@ -50,7 +51,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -116,6 +117,6 @@ Current `maintainers `__: |maintainer-osi-scampbell| |maintainer-max3903| -This module is part of the `OCA/rma `_ project on GitHub. +This module is part of the `OCA/rma `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_warranty/__manifest__.py b/product_warranty/__manifest__.py index c9aa12b4..ef9b053a 100644 --- a/product_warranty/__manifest__.py +++ b/product_warranty/__manifest__.py @@ -3,20 +3,20 @@ { "name": "Product Warranty", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Generic Modules/Product", "author": "Akretion, Vauxoo, Odoo Community Association (OCA)", "website": "https://github.com/OCA/rma", "license": "AGPL-3", - "depends": ["sale_management",], + "depends": ["sale_management"], "data": [ "security/ir.model.access.csv", "views/res_company.xml", "views/product_warranty.xml", "views/product_template.xml", ], - "demo": ["demo/product_warranty.xml", "demo/res_company.xml",], + "demo": ["demo/product_warranty.xml", "demo/res_company.xml"], "images": ["images/product_warranty.png"], "development_status": "Production/Stable", - "maintainers": ["osi-scampbell", "max3903",], + "maintainers": ["osi-scampbell", "max3903"], } diff --git a/product_warranty/models/product_supplierinfo.py b/product_warranty/models/product_supplierinfo.py index 97859386..e9c3dd64 100644 --- a/product_warranty/models/product_supplierinfo.py +++ b/product_warranty/models/product_supplierinfo.py @@ -1,6 +1,6 @@ -# © 2016 Cyril Gaudin (Camptocamp) -# © 2015 Vauxoo -# © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot +# Copyright 2016 Cyril Gaudin (Camptocamp) +# Copyright 2015 Vauxoo +# Copyright 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models diff --git a/product_warranty/models/product_template.py b/product_warranty/models/product_template.py index c445c7c2..d671734c 100644 --- a/product_warranty/models/product_template.py +++ b/product_warranty/models/product_template.py @@ -1,4 +1,4 @@ -# Copyright (C) 2018 - TODAY, Open Source Integrators +# Copyright 2018 - TODAY, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/product_warranty/models/res_company.py b/product_warranty/models/res_company.py index 8dee633b..85be27e1 100644 --- a/product_warranty/models/res_company.py +++ b/product_warranty/models/res_company.py @@ -1,5 +1,5 @@ -# © 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp) -# © 2009-2013 Akretion, Emmanuel Samyn, Raphaël Valyi, Sébastien Beau +# Copyright 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp) +# Copyright 2009-2013 Akretion, Emmanuel Samyn, Raphaël Valyi, Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/product_warranty/models/return_instruction.py b/product_warranty/models/return_instruction.py index db7ed798..bd5e74e8 100644 --- a/product_warranty/models/return_instruction.py +++ b/product_warranty/models/return_instruction.py @@ -1,6 +1,6 @@ -# © 2016 Cyril Gaudin (Camptocamp) -# © 2015 Vauxoo -# © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot +# Copyright 2016 Cyril Gaudin (Camptocamp) +# Copyright 2015 Vauxoo +# Copyright 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/product_warranty/readme/DESCRIPTION.rst b/product_warranty/readme/DESCRIPTION.rst index da2b8af9..c0788acf 100644 --- a/product_warranty/readme/DESCRIPTION.rst +++ b/product_warranty/readme/DESCRIPTION.rst @@ -1,6 +1,2 @@ -Extends the product warranty management with warranty details on product / -supplier relation: - -* Supplier warranty duration -* Set default return address for company (if different from standard one) -* Whether to return product to company, supplier, other +This module extends the functionality of 'Sales Management' to allows you +to set product warranty details on products and product-supplier relation. diff --git a/product_warranty/readme/USAGE.rst b/product_warranty/readme/USAGE.rst index af453434..bf3f1e20 100644 --- a/product_warranty/readme/USAGE.rst +++ b/product_warranty/readme/USAGE.rst @@ -1,3 +1,8 @@ -The new information is not explicitly used by the system until you install -another module that makes use of it, e.g. RMA Claim (Product Return -Management). +To use this module, you need to: + +#. Go to *Sales > Products > Products (or Product Variants)* +#. Create a new product (or product variant) or edit an existing one + and set 'Warranty Duration' under 'Sales' tab. +#. If 'Purchase' module is installed, got to + *Sales > Products > Products (or Product Variants)*, go to 'Purchase' tab, + edit supplier information lines an set the warranty information for each one. diff --git a/product_warranty/static/description/index.html b/product_warranty/static/description/index.html index c7ed0462..3ecabce9 100644 --- a/product_warranty/static/description/index.html +++ b/product_warranty/static/description/index.html @@ -367,14 +367,9 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/rma Translate me on Weblate Try me on Runbot

-

Extends the product warranty management with warranty details on product / -supplier relation:

-
    -
  • Supplier warranty duration
  • -
  • Set default return address for company (if different from standard one)
  • -
  • Whether to return product to company, supplier, other
  • -
+

Production/Stable License: AGPL-3 OCA/rma Translate me on Weblate Try me on Runbot

+

This module extends the functionality of ‘Sales Management’ to allows you +to set product warranty details on products and product-supplier relation.

Table of contents

    @@ -391,16 +386,22 @@ supplier relation:

Usage

-

The new information is not explicitly used by the system until you install -another module that makes use of it, e.g. RMA Claim (Product Return -Management).

+

To use this module, you need to:

+
    +
  1. Go to Sales > Products > Products (or Product Variants)
  2. +
  3. Create a new product (or product variant) or edit an existing one +and set ‘Warranty Duration’ under ‘Sales’ tab.
  4. +
  5. If ‘Purchase’ module is installed, got to +Sales > Products > Products (or Product Variants), go to ‘Purchase’ tab, +edit supplier information lines an set the warranty information for each one.
  6. +

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -451,7 +452,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

osi-scampbell max3903

-

This module is part of the OCA/rma project on GitHub.

+

This module is part of the OCA/rma project on GitHub.

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

diff --git a/product_warranty/tests/test_product_warranty.py b/product_warranty/tests/test_product_warranty.py index 3d6137a6..11ee1f0f 100644 --- a/product_warranty/tests/test_product_warranty.py +++ b/product_warranty/tests/test_product_warranty.py @@ -1,5 +1,5 @@ -# © 2016 Cyril Gaudin (Camptocamp) -# © 2015 Vauxoo, Yanina Aular +# Copyright 2016 Cyril Gaudin (Camptocamp) +# Copyright 2015 Vauxoo, Yanina Aular # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase diff --git a/product_warranty/views/product_warranty.xml b/product_warranty/views/product_warranty.xml index 53474d94..3c2db686 100644 --- a/product_warranty/views/product_warranty.xml +++ b/product_warranty/views/product_warranty.xml @@ -32,7 +32,6 @@ Products Return Instructions return.instruction - form tree,form