From 08bbb75a5e01f0f1dc7a3a7dae55248d7b88f837 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 2 Jun 2017 14:15:18 +0200 Subject: [PATCH] Test that landed cost relation is cleared when copying invoices issue6531 review42371002 --- tests/scenario_account_stock_landed_cost.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/scenario_account_stock_landed_cost.rst b/tests/scenario_account_stock_landed_cost.rst index 60e6582d73..f286b51798 100644 --- a/tests/scenario_account_stock_landed_cost.rst +++ b/tests/scenario_account_stock_landed_cost.rst @@ -149,3 +149,10 @@ Check move unit price is 101:: >>> move.reload() >>> move.unit_price Decimal('101.0000') + +Landed cost is cleared when duplicated invoice:: + + >>> copy_invoice = invoice.duplicate() + >>> landed_cost.reload() + >>> len(landed_cost.invoice_lines) + 1