diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index ffefd2f4df1..cc03b66969a 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -77,7 +77,7 @@ account_analytic_line() class hr_analytic_timesheet(osv.osv): _inherit = "hr.analytic.timesheet" def on_change_account_id(self, cr, uid, ids, account_id): - res = super(hr_analytic_timesheet,self).on_change_account_id(cr, uid, ids, account_id) + res = {} if not account_id: return res res.setdefault('value',{}) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml index d185e7d19f1..c0d65c83cd1 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml @@ -31,6 +31,18 @@ + + hr.analytic.timesheet.form2 + hr.analytic.timesheet + form + + + + + + + + hr.analytic.timesheet.tree hr.analytic.timesheet @@ -43,6 +55,19 @@ + + hr.analytic.timesheet.tree2 + hr.analytic.timesheet + tree + + + + + + + + + # # Inherits for account analytic lines #