[IMP/MOD]hr_timesheet_invoice : Usability Improvement
bzr revid: dbr@tinyerp.com-20101015131700-jsvmj8fw9gfui7qr
This commit is contained in:
parent
a971419f30
commit
d5b1d3e87d
|
@ -28,8 +28,6 @@
|
||||||
I create invoice on analytic Line using "Invoice analytic Line" wizard.
|
I create invoice on analytic Line using "Invoice analytic Line" wizard.
|
||||||
-
|
-
|
||||||
!record {model: hr.timesheet.invoice.create, id: hr_timesheet_invoice_create_0}:
|
!record {model: hr.timesheet.invoice.create, id: hr_timesheet_invoice_create_0}:
|
||||||
accounts:
|
|
||||||
- account.analytic_sednacom
|
|
||||||
date: 1
|
date: 1
|
||||||
name: 1
|
name: 1
|
||||||
price: 1
|
price: 1
|
||||||
|
@ -46,10 +44,12 @@
|
||||||
I check that Invoice is created for this timesheet.
|
I check that Invoice is created for this timesheet.
|
||||||
-
|
-
|
||||||
!python {model: account.analytic.line}: |
|
!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]
|
exp = self.browse(cr, uid, [ref('account_analytic_line_developyamlforhrmodule0')])[0]
|
||||||
analytic_account_obj = self.pool.get('account.analytic.account')
|
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]
|
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):
|
for account in analytic_account_obj.browse(cr, uid, account_ids, context):
|
||||||
partner = account.partner_id.id
|
partner = account.partner_id.id
|
||||||
|
|
||||||
|
@ -81,4 +81,4 @@
|
||||||
-
|
-
|
||||||
I can also make some theoretical revenue reports.
|
I can also make some theoretical revenue reports.
|
||||||
-
|
-
|
||||||
I can also see timesheet profit using Timesheet profit report.
|
I can also see timesheet profit using Timesheet profit report.
|
||||||
|
|
Loading…
Reference in New Issue