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"
<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>