diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml index 5c994130630..fcea1589f8d 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml +++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml @@ -7,7 +7,7 @@ Remove information on Account data => because they move on analysis sheet create a page with invoicing informations - --> + account.analytic.account.invoice.stat.form.inherit account.analytic.account @@ -27,7 +27,7 @@ icon="gtk-go-forward"/> - + --> account.analytic.account.invoice.form.inherit @@ -39,7 +39,22 @@ - + + + + + + + + + + + + + + + diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index 8d678f19554..0c2590ba682 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -73,9 +73,11 @@ class account_analytic_account(osv.osv): help="Fill this field if you plan to automatically generate invoices based " \ "on the costs in this analytic account: timesheets, expenses, ..." \ "You can configure an automatic invoice rate on analytic accounts."), + 'use_timesheets': fields.boolean('Timesheets:', help="Check this field if this project manages timesheets"), } _defaults = { 'pricelist_id': lambda self, cr, uid, ctx: ctx.get('pricelist_id', False), + 'use_timesheets' : True, } def on_change_partner_id(self, cr, uid, id, partner_id, context={}): res=super(account_analytic_account,self).on_change_partner_id(cr, uid, id, partner_id, context=context) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml index 5691ae438e6..b43776a8ee8 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml @@ -8,9 +8,15 @@ - + - + + + + + + +