[IMP] checked timesheet onchange of on timesheets
bzr revid: fka@tinyerp.com-20130305071704-7e43z4rps33ntouc
This commit is contained in:
@@ -531,6 +531,9 @@ class account_analytic_account(osv.osv):
|
||||
|
||||
return True
|
||||
|
||||
def onchange_invoice_on_timesheets(self, cr, uid, ids, invoice_on_timesheets, context=None):
|
||||
return {'value': {'use_timesheets': invoice_on_timesheets}}
|
||||
|
||||
class account_analytic_account_summary_user(osv.osv):
|
||||
_name = "account_analytic_analysis.summary.user"
|
||||
_description = "Hours Summary by User"
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<td class="oe_timesheet_grey">
|
||||
<label for="invoice_on_timesheets"/>
|
||||
</td><td class="oe_timesheet_grey">
|
||||
<field name="invoice_on_timesheets"/>
|
||||
<field name="invoice_on_timesheets" on_change="onchange_invoice_on_timesheets(invoice_on_timesheets)"/>
|
||||
</td><td>
|
||||
<field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
|
||||
</td><td>
|
||||
|
||||
Reference in New Issue
Block a user