diff --git a/addons/account_voucher/test/case1_usd_usd.yml b/addons/account_voucher/test/case1_usd_usd.yml index 0f4c2058fc7..2b8e5b1d8b3 100644 --- a/addons/account_voucher/test/case1_usd_usd.yml +++ b/addons/account_voucher/test/case1_usd_usd.yml @@ -159,7 +159,8 @@ I fill amounts 180 for the invoice of 200$ and 70 for the invoice of 100$> - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_1_case1')) data = [] @@ -256,7 +257,8 @@ I fill amounts 20 for the invoice of 200$ and 30 for the invoice of 100$ - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_2_case1')) data = [] diff --git a/addons/account_voucher/test/case2_suppl_usd_eur.yml b/addons/account_voucher/test/case2_suppl_usd_eur.yml index b32228032d3..3ae58e752cd 100644 --- a/addons/account_voucher/test/case2_suppl_usd_eur.yml +++ b/addons/account_voucher/test/case2_suppl_usd_eur.yml @@ -131,7 +131,8 @@ I fill amounts 180 for the invoice of 200$ and 70 for the invoice of 100$ - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_1_case2_suppl')) data = [] @@ -236,7 +237,8 @@ I fill amounts 20 for the invoice of 200$ and 30 for the invoice of 100$> - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_2_case2_suppl')) data = [] diff --git a/addons/account_voucher/test/case2_usd_eur_debtor_in_eur.yml b/addons/account_voucher/test/case2_usd_eur_debtor_in_eur.yml index 275e4c58835..9a367b90be1 100644 --- a/addons/account_voucher/test/case2_usd_eur_debtor_in_eur.yml +++ b/addons/account_voucher/test/case2_usd_eur_debtor_in_eur.yml @@ -163,7 +163,8 @@ I fill amounts 130 for the invoice of 200$ and 70 for the invoice of 100$ - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_1_case2a')) data = [] @@ -231,7 +232,8 @@ and I fully reconcile the 2 previous invoices - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_2_case2a')) data = [] diff --git a/addons/account_voucher/test/case2_usd_eur_debtor_in_usd.yml b/addons/account_voucher/test/case2_usd_eur_debtor_in_usd.yml index 667882e3a32..d54fdc17fd7 100644 --- a/addons/account_voucher/test/case2_usd_eur_debtor_in_usd.yml +++ b/addons/account_voucher/test/case2_usd_eur_debtor_in_usd.yml @@ -163,7 +163,8 @@ I fill amounts 130 for the invoice of 200$ and 70 for the invoice of 100$> - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_1_case2b')) data = [] @@ -246,7 +247,8 @@ and I fully reconcil the 2 previous invoices - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_2_case2b')) data = [] diff --git a/addons/account_voucher/test/case3_eur_eur.yml b/addons/account_voucher/test/case3_eur_eur.yml index f2f9461c31e..b9a4ce8e02c 100644 --- a/addons/account_voucher/test/case3_eur_eur.yml +++ b/addons/account_voucher/test/case3_eur_eur.yml @@ -118,7 +118,8 @@ I fill amounts 100 for the invoice of 150€ and 20 for the invoice of 80€ - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_1_case3')) data = [] @@ -208,7 +209,8 @@ I fill amounts 50 for the invoice of 150€ and 70 for the invoice of 80€ - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_2_case3')) data = [] diff --git a/addons/account_voucher/test/case4_cad_chf.yml b/addons/account_voucher/test/case4_cad_chf.yml index bc33e387a85..cf1c4fe5737 100644 --- a/addons/account_voucher/test/case4_cad_chf.yml +++ b/addons/account_voucher/test/case4_cad_chf.yml @@ -118,7 +118,8 @@ I completly pay the invoice of 200 CAD - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_1_case4')) data = [] diff --git a/addons/account_voucher/test/case5_suppl_usd_usd.yml b/addons/account_voucher/test/case5_suppl_usd_usd.yml index 3ef6d1269b7..ace88e0bd4d 100644 --- a/addons/account_voucher/test/case5_suppl_usd_usd.yml +++ b/addons/account_voucher/test/case5_suppl_usd_usd.yml @@ -124,7 +124,8 @@ I fill $1000 for the previously encoded invoice - !python {model: account.voucher}: | - import netsvc, time + import time + from openerp import netsvc vals = {} voucher_id = self.browse(cr, uid, ref('account_voucher_case_5_supplier_flow')) for item in voucher_id.line_dr_ids: