mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[8.0][FIX] crm_rma_claim_make_claim: Fix pylint
This commit is contained in:
@@ -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': '',
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user