diff --git a/addons/account_analytic_analysis/__init__.py b/addons/account_analytic_analysis/__init__.py index 429aa011f31..269cec893ed 100644 --- a/addons/account_analytic_analysis/__init__.py +++ b/addons/account_analytic_analysis/__init__.py @@ -21,6 +21,7 @@ import account_analytic_analysis import cron_account_analytic_account +import report # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account_analytic_analysis/__openerp__.py b/addons/account_analytic_analysis/__openerp__.py index d8614a33a78..164eb8b0c04 100644 --- a/addons/account_analytic_analysis/__openerp__.py +++ b/addons/account_analytic_analysis/__openerp__.py @@ -42,6 +42,7 @@ user-wise as well as month wise. "account_analytic_analysis_view.xml", "account_analytic_analysis_menu.xml", "account_analytic_analysis_cron.xml", + "account_analytic_analysis_report.xml" ], 'demo_xml': [], "css" : [ diff --git a/addons/account_analytic_analysis/account_analytic_analysis_report.xml b/addons/account_analytic_analysis/account_analytic_analysis_report.xml new file mode 100644 index 00000000000..2785d68fd32 --- /dev/null +++ b/addons/account_analytic_analysis/account_analytic_analysis_report.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/addons/account_analytic_analysis/report/__init__.py b/addons/account_analytic_analysis/report/__init__.py new file mode 100644 index 00000000000..69726299c50 --- /dev/null +++ b/addons/account_analytic_analysis/report/__init__.py @@ -0,0 +1,25 @@ +# -*- 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 . +# +############################################################################## + +import analytic_account + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/addons/account_analytic_analysis/report/analytic_account.py b/addons/account_analytic_analysis/report/analytic_account.py new file mode 100644 index 00000000000..a3990defa24 --- /dev/null +++ b/addons/account_analytic_analysis/report/analytic_account.py @@ -0,0 +1,37 @@ +# -*- 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 . +# +############################################################################## + +import time +from report import report_sxw + +class analytic_account(report_sxw.rml_parse): + def __init__(self, cr, uid, name, context): + super(account_invoice, self).__init__(cr, uid, name, context=context) + self.localcontext.update({ + 'time': time, + }) +report_sxw.report_sxw( + 'report.analytic_account', + 'account.analytic.account', + 'addons/account_analytic_analysis/report/analytic_account.rml', + parser=analytic_account +) +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account_analytic_analysis/report/analytic_account.rml b/addons/account_analytic_analysis/report/analytic_account.rml new file mode 100644 index 00000000000..dcf24344b67 --- /dev/null +++ b/addons/account_analytic_analysis/report/analytic_account.rml @@ -0,0 +1,346 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Analytic Account + + [[repeatIn(objects,'account')]] + + + + + Project Name + + + Customer + + + Account Manager + + + Code/Refrence + + + + + [[ account.name ]] + + + [[ account.partner_id.name ]] + + + [[ account.user_id.name ]] + + + [[ account.code ]] + + + + + + + + Invocing + + + + + + + + Total Cost + + + Invoiced + + + Remaining + + + Ready To Invoice + + + + + Fix Price Invoices + + + [[ account.amount_max ]] + + + [[ account.so_invoiced ]] + + + [[ account.remaining_invoiced ]] + + + [[ account.so_toinvoice ]] + + + + + Invoice on Timesheet + + + [[ account.timesheet_max ]] + + + [[ account.timesheet_invoiced ]] + + + [[ account.remaining_timesheet ]] + + + [[ account.timesheet_toinvoice ]] + + + + + Charge Expenses + + + + + + + + + + + + + + + + + + + + + + + + + Total + + + [[ account.total_max ]] + + + [[ account.total_invoiced ]] + + + [[ account.total_remaining ]] + + + [[ account.total_toinvoice ]] + + + + + + + + + + Timesheet Invoice Ratio + + + Pricelist + + + + + [[ account.to_invoice.name ]] + + + [[ account.pricelist_id.name ]] + + + + + + + + Validity + + + Date Start + + + Date End + + + Maximum Time + + + + Remaining Time + + + + + + [[ account.date_start ]] + + + [[ account.date ]] + + + [[ account.quantity_max ]] + + + [[ account.remaining_hours ]] + + + + + + + + + + + + +
+ + + +
+