From 352e054068d74c296475c285361964bfb86b4e32 Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Mon, 25 Jun 2012 10:37:53 +0530 Subject: [PATCH] [IMP]change the place of fields for better view and add note for details bzr revid: sgo@tinyerp.com-20120625050753-lhe0p8xnp5r2g6zp --- .../account_analytic_analysis_view.xml | 15 +++++++++++---- .../analytic_contract_project.py | 11 ++++++++++- .../hr_timesheet_invoice/hr_timesheet_invoice.py | 2 +- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml index 70f4d49440f..cc1d674ca0a 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml +++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml @@ -30,14 +30,21 @@ - - - - + + + + + + + + + + + diff --git a/addons/analytic_contract_project/analytic_contract_project.py b/addons/analytic_contract_project/analytic_contract_project.py index 12e307c5a81..9ddc75ecf8d 100644 --- a/addons/analytic_contract_project/analytic_contract_project.py +++ b/addons/analytic_contract_project/analytic_contract_project.py @@ -70,5 +70,14 @@ class project_project(osv.osv): 'context': view_context, 'nodestroy': True, } - project_project() + +class task(osv.osv): + _inherit = "project.task" + + def create(self, cr, uid, vals, context=None): + task_id = super(task, self).create(cr, uid, vals, context=context) + task_browse = self.browse(cr,uid,task_id,context) + self.pool.get('account.analytic.account').message_append_note(cr, uid, [task_browse.project_id.analytic_account_id.id], body=_("Task has been created."), context=context) + return task_id +task() diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index 8701210e5f8..87539de9a08 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -69,7 +69,7 @@ class account_analytic_account(osv.osv): help="Keep empty if this contract is not limited to a total fixed price."), 'amount_invoiced': fields.function(_invoiced_calc, string='Invoiced Amount', help="Total invoiced"), - 'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Timesheet Invocing Ratio', + 'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Invocing Ratio', 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."),