From 07567c2e43da00cfb4b9cb0437f8ac5ea9a81b1a Mon Sep 17 00:00:00 2001 From: luc-demeyer Date: Mon, 24 Nov 2014 15:59:36 +0100 Subject: [PATCH] asset mgt update --- .../test/account_asset_wizard.yml | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 account_asset_management/test/account_asset_wizard.yml diff --git a/account_asset_management/test/account_asset_wizard.yml b/account_asset_management/test/account_asset_wizard.yml deleted file mode 100644 index 7b77e5cfd..000000000 --- a/account_asset_management/test/account_asset_wizard.yml +++ /dev/null @@ -1,27 +0,0 @@ -- - I create a record to change the duration of asset for calculating depreciation. -- - !record {model: asset.modify, id: asset_modify_number_0, context: "{'active_id': ref('account_asset_asset_office0')}"}: - method_number: 10.0 -- - I change the duration. -- - !python {model: asset.modify}: | - context = {"active_id":ref('account_asset_asset_office0')} - self.modify(cr, uid, [ref("asset_modify_number_0")], context=context) -- - I check the proper depreciation lines created. -- - !assert {model: account.asset.asset, id: account_asset.account_asset_asset_office0}: - - method_number == len(depreciation_line_ids) -1 -- - I create a period to compute a asset on period. -- - !record {model: asset.depreciation.confirmation.wizard, id: asset_compute_period_0}: - {} -- - I compute a asset on period. -- - !python {model: asset.depreciation.confirmation.wizard}: | - context = {"active_ids": [ref("menu_asset_depreciation_confirmation_wizard")], "active_id":ref('menu_asset_depreciation_confirmation_wizard')} - self.asset_compute(cr, uid, [ref("asset_compute_period_0")], context=context)