mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[MIG] product_warranty: Migration to 14.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user