[MIG] product_warranty: Migration to 13.0

This commit is contained in:
Ernesto Tejeda
2020-11-02 16:07:03 -05:00
committed by SilvioC2C
parent a3c5540505
commit 12601745fc
11 changed files with 54 additions and 52 deletions

View File

@@ -14,23 +14,19 @@ Product Warranty
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github .. |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 :alt: OCA/rma
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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 :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |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 :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
Extends the product warranty management with warranty details on product / This module extends the functionality of 'Sales Management' to allows you
supplier relation: to set product warranty details on products and 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
**Table of contents** **Table of contents**
@@ -40,9 +36,14 @@ supplier relation:
Usage Usage
===== =====
The new information is not explicitly used by the system until you install To use this module, you need to:
another module that makes use of it, e.g. RMA Claim (Product Return
Management). #. 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 Bug Tracker
=========== ===========
@@ -50,7 +51,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/issues>`_.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@@ -116,6 +117,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-osi-scampbell| |maintainer-max3903| |maintainer-osi-scampbell| |maintainer-max3903|
This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/12.0/product_warranty>`_ project on GitHub. This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/13.0/product_warranty>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -3,20 +3,20 @@
{ {
"name": "Product Warranty", "name": "Product Warranty",
"version": "12.0.1.0.0", "version": "13.0.1.0.0",
"category": "Generic Modules/Product", "category": "Generic Modules/Product",
"author": "Akretion, Vauxoo, Odoo Community Association (OCA)", "author": "Akretion, Vauxoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rma", "website": "https://github.com/OCA/rma",
"license": "AGPL-3", "license": "AGPL-3",
"depends": ["sale_management",], "depends": ["sale_management"],
"data": [ "data": [
"security/ir.model.access.csv", "security/ir.model.access.csv",
"views/res_company.xml", "views/res_company.xml",
"views/product_warranty.xml", "views/product_warranty.xml",
"views/product_template.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"], "images": ["images/product_warranty.png"],
"development_status": "Production/Stable", "development_status": "Production/Stable",
"maintainers": ["osi-scampbell", "max3903",], "maintainers": ["osi-scampbell", "max3903"],
} }

View File

@@ -1,6 +1,6 @@
# © 2016 Cyril Gaudin (Camptocamp) # Copyright 2016 Cyril Gaudin (Camptocamp)
# © 2015 Vauxoo # Copyright 2015 Vauxoo
# © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # Copyright 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models from odoo import api, fields, models

View File

@@ -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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models from odoo import fields, models

View File

@@ -1,5 +1,5 @@
# © 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp) # Copyright 2016 Joel Grand-Guillaume, Cyril Gaudin (Camptocamp)
# © 2009-2013 Akretion, Emmanuel Samyn, Raphaël Valyi, Sébastien Beau # 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). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models from odoo import fields, models

View File

@@ -1,6 +1,6 @@
# © 2016 Cyril Gaudin (Camptocamp) # Copyright 2016 Cyril Gaudin (Camptocamp)
# © 2015 Vauxoo # Copyright 2015 Vauxoo
# © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # Copyright 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models from odoo import fields, models

View File

@@ -1,6 +1,2 @@
Extends the product warranty management with warranty details on product / This module extends the functionality of 'Sales Management' to allows you
supplier relation: to set product warranty details on products and 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

View File

@@ -1,3 +1,8 @@
The new information is not explicitly used by the system until you install To use this module, you need to:
another module that makes use of it, e.g. RMA Claim (Product Return
Management). #. 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.

View File

@@ -367,14 +367,9 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/rma/tree/12.0/product_warranty"><img alt="OCA/rma" src="https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/rma-12-0/rma-12-0-product_warranty"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/145/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/rma/tree/13.0/product_warranty"><img alt="OCA/rma" src="https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/rma-13-0/rma-13-0-product_warranty"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/145/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>Extends the product warranty management with warranty details on product / <p>This module extends the functionality of Sales Management to allows you
supplier relation:</p> to set product warranty details on products and product-supplier relation.</p>
<ul class="simple">
<li>Supplier warranty duration</li>
<li>Set default return address for company (if different from standard one)</li>
<li>Whether to return product to company, supplier, other</li>
</ul>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@@ -391,16 +386,22 @@ supplier relation:</p>
</div> </div>
<div class="section" id="usage"> <div class="section" id="usage">
<h1><a class="toc-backref" href="#id1">Usage</a></h1> <h1><a class="toc-backref" href="#id1">Usage</a></h1>
<p>The new information is not explicitly used by the system until you install <p>To use this module, you need to:</p>
another module that makes use of it, e.g. RMA Claim (Product Return <ol class="arabic simple">
Management).</p> <li>Go to <em>Sales &gt; Products &gt; Products (or Product Variants)</em></li>
<li>Create a new product (or product variant) or edit an existing one
and set Warranty Duration under Sales tab.</li>
<li>If Purchase module is installed, got to
<em>Sales &gt; Products &gt; Products (or Product Variants)</em>, go to Purchase tab,
edit supplier information lines an set the warranty information for each one.</li>
</ol>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rma/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rma/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. 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 If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/rma/issues/new?body=module:%20product_warranty%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@@ -451,7 +452,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external" href="https://github.com/osi-scampbell"><img alt="osi-scampbell" src="https://github.com/osi-scampbell.png?size=40px" /></a> <a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p> <p><a class="reference external" href="https://github.com/osi-scampbell"><img alt="osi-scampbell" src="https://github.com/osi-scampbell.png?size=40px" /></a> <a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rma/tree/12.0/product_warranty">OCA/rma</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/rma/tree/13.0/product_warranty">OCA/rma</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>

View File

@@ -1,5 +1,5 @@
# © 2016 Cyril Gaudin (Camptocamp) # Copyright 2016 Cyril Gaudin (Camptocamp)
# © 2015 Vauxoo, Yanina Aular # Copyright 2015 Vauxoo, Yanina Aular
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase

View File

@@ -32,7 +32,6 @@
<record id="product_return_instructions_action" model="ir.actions.act_window"> <record id="product_return_instructions_action" model="ir.actions.act_window">
<field name="name">Products Return Instructions</field> <field name="name">Products Return Instructions</field>
<field name="res_model">return.instruction</field> <field name="res_model">return.instruction</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_id" ref="product_return_instructions_tree_view" /> <field name="view_id" ref="product_return_instructions_tree_view" />
</record> </record>