From 7508184a35ed8ec4184ea2578e9a6cb19cb89bdc Mon Sep 17 00:00:00 2001
From: Lois Suarez
Date: Wed, 11 Aug 2021 09:47:44 +0100
Subject: [PATCH] [MIG] product_warranty: Migration to 14.0
---
product_warranty/README.rst | 10 +++++-----
product_warranty/__manifest__.py | 2 +-
product_warranty/i18n/product_warranty.pot | 11 ++++++++++-
product_warranty/static/description/index.html | 6 +++---
product_warranty/tests/test_product_warranty.py | 8 ++++----
5 files changed, 23 insertions(+), 14 deletions(-)
diff --git a/product_warranty/README.rst b/product_warranty/README.rst
index 7953db07..c5293592 100644
--- a/product_warranty/README.rst
+++ b/product_warranty/README.rst
@@ -14,13 +14,13 @@ 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/13.0/product_warranty
+ :target: https://github.com/OCA/rma/tree/14.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-13-0/rma-13-0-product_warranty
+ :target: https://translation.odoo-community.org/projects/rma-14-0/rma-14-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/13.0
+ :target: https://runbot.odoo-community.org/runbot/145/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -51,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.
@@ -117,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 ef9b053a..8eab86cb 100644
--- a/product_warranty/__manifest__.py
+++ b/product_warranty/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Product Warranty",
- "version": "13.0.1.0.0",
+ "version": "14.0.1.0.0",
"category": "Generic Modules/Product",
"author": "Akretion, Vauxoo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rma",
diff --git a/product_warranty/i18n/product_warranty.pot b/product_warranty/i18n/product_warranty.pot
index 3461b785..baca7c3e 100644
--- a/product_warranty/i18n/product_warranty.pot
+++ b/product_warranty/i18n/product_warranty.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -56,11 +56,17 @@ msgid ""
msgstr ""
#. module: product_warranty
+#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__display_name
+#: model:ir.model.fields,field_description:product_warranty.field_product_template__display_name
+#: model:ir.model.fields,field_description:product_warranty.field_res_company__display_name
#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__display_name
msgid "Display Name"
msgstr ""
#. module: product_warranty
+#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo__id
+#: model:ir.model.fields,field_description:product_warranty.field_product_template__id
+#: model:ir.model.fields,field_description:product_warranty.field_res_company__id
#: model:ir.model.fields,field_description:product_warranty.field_return_instruction__id
msgid "ID"
msgstr ""
@@ -101,6 +107,9 @@ msgid "Is this supplier still active, only for information."
msgstr ""
#. module: product_warranty
+#: model:ir.model.fields,field_description:product_warranty.field_product_supplierinfo____last_update
+#: model:ir.model.fields,field_description:product_warranty.field_product_template____last_update
+#: model:ir.model.fields,field_description:product_warranty.field_res_company____last_update
#: model:ir.model.fields,field_description:product_warranty.field_return_instruction____last_update
msgid "Last Modified on"
msgstr ""
diff --git a/product_warranty/static/description/index.html b/product_warranty/static/description/index.html
index 3ecabce9..113ef05c 100644
--- a/product_warranty/static/description/index.html
+++ b/product_warranty/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

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
@@ -401,7 +401,7 @@ edit supplier information lines an set the warranty information for each one.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.
@@ -452,7 +452,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.
Current maintainers:

-
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 11ee1f0f..cb1c265e 100644
--- a/product_warranty/tests/test_product_warranty.py
+++ b/product_warranty/tests/test_product_warranty.py
@@ -46,7 +46,7 @@ class TestProductWarranty(TransactionCase):
"product_warranty." "return_instruction_1"
)
- self.assertEquals(
+ self.assertEqual(
self.supplierinfo_brw.return_instructions.id, return_instructions_id.id
)
@@ -57,21 +57,21 @@ class TestProductWarranty(TransactionCase):
"""
self.create_product_supplierinfo()
- self.assertEquals(
+ self.assertEqual(
self.supplierinfo_brw.warranty_return_address.id,
self.supplierinfo_brw.name.id,
)
self.supplierinfo_brw.write({"warranty_return_partner": "company"})
- self.assertEquals(
+ self.assertEqual(
self.supplierinfo_brw.warranty_return_address.id,
self.supplierinfo_brw.company_id.crm_return_address_id.id,
)
self.supplierinfo_brw.write({"warranty_return_partner": "other"})
- self.assertEquals(
+ self.assertEqual(
self.supplierinfo_brw.warranty_return_address.id,
self.supplierinfo_brw.warranty_return_other_address.id,
)