From d5b1d3e87dc38c87b58792900b241b721e556db9 Mon Sep 17 00:00:00 2001 From: "DBR (OpenERP)" Date: Fri, 15 Oct 2010 18:47:00 +0530 Subject: [PATCH] [IMP/MOD]hr_timesheet_invoice : Usability Improvement bzr revid: dbr@tinyerp.com-20101015131700-jsvmj8fw9gfui7qr --- .../test/test_hr_timesheet_invoice.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/hr_timesheet_invoice/test/test_hr_timesheet_invoice.yml b/addons/hr_timesheet_invoice/test/test_hr_timesheet_invoice.yml index cda4574845a..9a22de4d828 100644 --- a/addons/hr_timesheet_invoice/test/test_hr_timesheet_invoice.yml +++ b/addons/hr_timesheet_invoice/test/test_hr_timesheet_invoice.yml @@ -28,8 +28,6 @@ I create invoice on analytic Line using "Invoice analytic Line" wizard. - !record {model: hr.timesheet.invoice.create, id: hr_timesheet_invoice_create_0}: - accounts: - - account.analytic_sednacom date: 1 name: 1 price: 1 @@ -46,10 +44,12 @@ I check that Invoice is created for this timesheet. - !python {model: account.analytic.line}: | + account_id = self.pool.get('account.analytic.line') + accounts = account_id.browse(cr, uid, [ref("account_analytic_line_developyamlforhrmodule0")])[0] exp = self.browse(cr, uid, [ref('account_analytic_line_developyamlforhrmodule0')])[0] analytic_account_obj = self.pool.get('account.analytic.account') data = self.pool.get('hr.timesheet.invoice.create').read(cr, uid, [ref("hr_timesheet_invoice_create_0")], [], context)[0] - account_ids = data['accounts'] + account_ids = accounts['account_id'] for account in analytic_account_obj.browse(cr, uid, account_ids, context): partner = account.partner_id.id @@ -81,4 +81,4 @@ - I can also make some theoretical revenue reports. - - I can also see timesheet profit using Timesheet profit report. \ No newline at end of file + I can also see timesheet profit using Timesheet profit report.