From 30d2aa1639150f19b85a2bd68ee8bb8073830fc9 Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 30 Oct 2019 19:38:23 +0100 Subject: [PATCH] [FIX] tests --- .../tests/test_account_move_line_rma_order_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py index 106253c6..e84d5415 100644 --- a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py +++ b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py @@ -180,8 +180,8 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase): data = wizard._prepare_rma_line_from_stock_move(move) wizard.add_lines() - for operation in move.product_id.rma_customer_operation_id: - operation.in_route_id = False + if move.product_id.rma_customer_operation_id: + move.product_id.rma_customer_operation_id.in_route_id = False move.product_id.categ_id.rma_customer_operation_id = False move.product_id.rma_customer_operation_id = False wizard._prepare_rma_line_from_stock_move(move)