diff --git a/addons/analytic_contract_project/__init__.py b/addons/analytic_contract_project/__init__.py index 2aefd8b3c11..dd60ac32096 100644 --- a/addons/analytic_contract_project/__init__.py +++ b/addons/analytic_contract_project/__init__.py @@ -19,5 +19,6 @@ # ############################################################################## -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +import analytic_contract_project +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/analytic_contract_project/analytic_contract_project.py b/addons/analytic_contract_project/analytic_contract_project.py new file mode 100644 index 00000000000..21654868218 --- /dev/null +++ b/addons/analytic_contract_project/analytic_contract_project.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from osv import fields, osv + +class project_project(osv.osv): + _inherit = 'project.project' + _columns = { + # 'use_timesheets': fields.boolean('Timesheets', help="Check this field if this project manages timesheets"), + } + _defaults = { + 'use_timesheets': True, + } +project_project() diff --git a/addons/analytic_contract_project/analytic_contract_project_view.xml b/addons/analytic_contract_project/analytic_contract_project_view.xml index fff5e002f0f..7fe0e2abbbd 100644 --- a/addons/analytic_contract_project/analytic_contract_project_view.xml +++ b/addons/analytic_contract_project/analytic_contract_project_view.xml @@ -8,78 +8,105 @@ - + - - - - - - - - - - - - - - - - - - - - - -
- -
Est.Tot
-
Invoiced
-
Remaining
-
To Invoice
-
-
+ + + + + + + + + + - - - - - - - - - -
-
-
- - - - - - - -
-
-
- - - -
Total
- - - - - -
-
- - - - - - - + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + + + Inherit project form : Invoicing Data + project.project + form + + + + + +