From 0e90703ad0d1727c7a4511e30f335c0a3667357c Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Mon, 28 May 2012 18:00:54 +0530 Subject: [PATCH] [IMP]add boolean of project,projec_longterm,and project issue and create related project bzr revid: sgo@tinyerp.com-20120528123054-ntp1u33q1iavwtej --- .../account_analytic_analysis_view.xml | 23 +++++++++++++--- .../hr_timesheet_invoice.py | 2 ++ .../hr_timesheet_invoice_view.xml | 19 ++++++++----- addons/project/project.py | 26 ++++++++++++++---- addons/project/project_view.xml | 16 +++++++++++ addons/project_issue/project_issue.py | 27 +++++++++++++++---- addons/project_issue/project_issue_view.xml | 15 +++++++++++ addons/project_long_term/project_long_term.py | 24 +++++++++++++---- .../project_long_term_view.xml | 16 +++++++++++ 9 files changed, 143 insertions(+), 25 deletions(-) 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 @@ - + - + + + + + + +