[8.0][FIX] crm_rma_claim_make_claim: Fix pylint

This commit is contained in:
Denis Roussel
2019-12-24 10:05:15 +01:00
parent 8ed5961938
commit b00ca8cfbe
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
{
'name': 'CRM RMA Claim Make Claim',
'version': '8.0.1.0.0',
'author': 'Vauxoo',
'author': 'Vauxoo, Odoo Community Association (OCA)',
'website': 'http://www.vauxoo.com/',
'license': 'AGPL-3',
'category': '',

View File

@@ -20,6 +20,7 @@
##############################################################################
from openerp.tests.common import TransactionCase
from odoo.tools.safe_eval import safe_eval
class TestCrmRmaClaimMakeClaim(TransactionCase):
@@ -73,5 +74,5 @@ class TestCrmRmaClaimMakeClaim(TransactionCase):
def test_01_claim_make_claim(self):
claim_id = self.create_customer_claim()
res = claim_id.claim_line_ids.button_create_line_rma_vendor()
lines_added = eval(res[0]['domain'])[0][2]
lines_added = safe_eval(res[0]['domain'])[0][2]
self.assertEquals(len(claim_id.claim_line_ids), len(lines_added))