diff --git a/product_warranty/README.rst b/product_warranty/README.rst index a7ad1661..a07914af 100644 --- a/product_warranty/README.rst +++ b/product_warranty/README.rst @@ -33,6 +33,7 @@ Contributors * Ondřej Kuzník * Yanina Aular * Cyril Gaudin +* Bima Jati Wijaya Maintainer ---------- diff --git a/product_warranty/__manifest__.py b/product_warranty/__manifest__.py index 54b4e53b..e2b6badb 100644 --- a/product_warranty/__manifest__.py +++ b/product_warranty/__manifest__.py @@ -22,12 +22,12 @@ { 'name': 'Product warranty', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Generic Modules/Product', 'author': "Akretion,Odoo Community Association (OCA),Vauxoo", 'website': 'http://akretion.com', 'license': 'AGPL-3', - 'depends': ['product'], + 'depends': ['product', 'sale'], 'data': [ 'security/ir.model.access.csv', 'views/res_company.xml', @@ -38,7 +38,7 @@ 'demo/res_company.xml', ], 'test': [], - 'installable': False, + 'installable': True, 'active': False, 'images': ['images/product_warranty.png'], } diff --git a/product_warranty/demo/product_warranty.xml b/product_warranty/demo/product_warranty.xml index faea7cc5..570568cf 100644 --- a/product_warranty/demo/product_warranty.xml +++ b/product_warranty/demo/product_warranty.xml @@ -1,5 +1,5 @@ - + @@ -61,4 +61,4 @@ Select the product you want to return and the reason for the return. You will ne - + diff --git a/product_warranty/demo/res_company.xml b/product_warranty/demo/res_company.xml index 63f04793..43f0a72f 100644 --- a/product_warranty/demo/res_company.xml +++ b/product_warranty/demo/res_company.xml @@ -1,5 +1,5 @@ - + @@ -7,4 +7,4 @@ - + diff --git a/product_warranty/models/product_supplierinfo.py b/product_warranty/models/product_supplierinfo.py index c406f98c..7bf4c88a 100644 --- a/product_warranty/models/product_supplierinfo.py +++ b/product_warranty/models/product_supplierinfo.py @@ -4,7 +4,7 @@ # © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models +from odoo import api, fields, models class ProductSupplierInfo(models.Model): diff --git a/product_warranty/models/res_company.py b/product_warranty/models/res_company.py index 8c7258cf..30009796 100644 --- a/product_warranty/models/res_company.py +++ b/product_warranty/models/res_company.py @@ -3,7 +3,7 @@ # © 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 openerp import fields, models +from odoo import fields, models class ResCompany(models.Model): diff --git a/product_warranty/models/return_instruction.py b/product_warranty/models/return_instruction.py index cb646a61..b1798a6e 100644 --- a/product_warranty/models/return_instruction.py +++ b/product_warranty/models/return_instruction.py @@ -4,7 +4,7 @@ # © 2009-2011 Akretion, Emmanuel Samyn, Benoît Guillot # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import fields, models +from odoo import fields, models class ReturnInstruction(models.Model): diff --git a/product_warranty/security/ir.model.access.csv b/product_warranty/security/ir.model.access.csv index b8cc8fff..ba6c463e 100644 --- a/product_warranty/security/ir.model.access.csv +++ b/product_warranty/security/ir.model.access.csv @@ -1,4 +1,4 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_return_instruction_user","return.instruction.user","model_return_instruction","base.group_user","True","False","False","False" -"access_return_instruction_manager","return.instruction.manager","model_return_instruction","base.group_sale_manager","True","True","True","True" -"access_return_instruction_salesman","return.instruction.salesman","model_return_instruction","base.group_sale_salesman","True","True","True","True" +"access_return_instruction_manager","return.instruction.manager","model_return_instruction","sales_team.group_sale_manager","True","True","True","True" +"access_return_instruction_salesman","return.instruction.salesman","model_return_instruction","sales_team.group_sale_salesman","True","True","True","True" diff --git a/product_warranty/tests/test_product_warranty.py b/product_warranty/tests/test_product_warranty.py index 98bb2ad8..38a68707 100644 --- a/product_warranty/tests/test_product_warranty.py +++ b/product_warranty/tests/test_product_warranty.py @@ -3,7 +3,7 @@ # © 2015 Vauxoo, Yanina Aular # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestProductWarranty(TransactionCase): diff --git a/product_warranty/views/product_warranty.xml b/product_warranty/views/product_warranty.xml index aef144f2..23741c1c 100644 --- a/product_warranty/views/product_warranty.xml +++ b/product_warranty/views/product_warranty.xml @@ -1,5 +1,5 @@ - + @@ -20,7 +20,7 @@ return.instruction
- + @@ -41,7 +41,7 @@ + parent="sale.prod_config_main" sequence="3"/> @@ -66,11 +66,11 @@ - + - + @@ -87,4 +87,4 @@ - + diff --git a/product_warranty/views/res_company.xml b/product_warranty/views/res_company.xml index 831c09d8..51317c05 100644 --- a/product_warranty/views/res_company.xml +++ b/product_warranty/views/res_company.xml @@ -1,5 +1,5 @@ - + @@ -18,4 +18,4 @@ - +