bzr revid: fp@tinyerp.com-20111116183051-dj5nxt5m8qzkv058
This commit is contained in:
Fabien Pinckaers 2011-11-16 19:30:51 +01:00
parent a2a7dd149e
commit ef45bcb011
1 changed files with 1 additions and 8 deletions

View File

@ -3,7 +3,7 @@
-
I create an account analytic line.
-
!record {model: account.analytic.line, id: account_analytic_line_developyamlforhrmodule0}:
!record {model: account.analytic.line, id: account_analytic_line_developyamlforhrmodule0 }:
account_id: account.analytic_sednacom
amount: -1.0
general_account_id: account.a_expense
@ -84,10 +84,3 @@
import netsvc
wkf_service = netsvc.LocalService("workflow")
res = self.do_create(cr, uid, [ref("hr_timesheet_invoice_create_final_0")], {"active_ids": [ref("account.analytic_sednacom")]})
invoice_ids = eval(res['domain'])[0][2]
for inv in invoice_ids:
wkf_service.trg_validate(uid, 'account.invoice', inv, 'invoice_open', cr)
-
I can also make some theoretical revenue reports.
-
I can also see timesheet profit using Timesheet profit report.