parent
a2a7dd149e
commit
ef45bcb011
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue