diff --git a/addons/account/i18n/nl_BE.po b/addons/account/i18n/nl_BE.po index f298c31854d..5df4bb0be72 100644 --- a/addons/account/i18n/nl_BE.po +++ b/addons/account/i18n/nl_BE.po @@ -7,30 +7,30 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-08-28 16:01+0000\n" -"PO-Revision-Date: 2009-04-24 15:00+0000\n" -"Last-Translator: Fabien (Open ERP) \n" +"PO-Revision-Date: 2010-06-02 08:19+0000\n" +"Last-Translator: jan@synkronized.be \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-04-17 04:08+0000\n" +"X-Launchpad-Export-Date: 2010-06-03 03:33+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account #: field:account.tax.template,description:0 msgid "Internal Name" -msgstr "" +msgstr "Interne naam" #. module: account #: view:account.tax.code:0 msgid "Account Tax Code" -msgstr "" +msgstr "Belasting code" #. module: account #: model:ir.actions.act_window,name:account.action_invoice_tree9 #: model:ir.ui.menu,name:account.menu_action_invoice_tree9 msgid "Unpaid Supplier Invoices" -msgstr "" +msgstr "Onbetaalde inkoopfacturen" #. module: account #: model:ir.ui.menu,name:account.menu_finance_entries @@ -50,12 +50,12 @@ msgstr "" #. module: account #: model:account.account.type,name:account.account_type_asset msgid "Asset" -msgstr "" +msgstr "Activa" #. module: account #: constraint:ir.actions.act_window:0 msgid "Invalid model name in the action definition." -msgstr "" +msgstr "Ongeldige modelnaam in de actie-definitie." #. module: account #: help:account.journal,currency:0 @@ -65,7 +65,7 @@ msgstr "" #. module: account #: wizard_view:account_use_models,init_form:0 msgid "Select Message" -msgstr "" +msgstr "Kies bericht" #. module: account #: help:product.category,property_account_income_categ:0 @@ -82,19 +82,19 @@ msgstr "" #. module: account #: wizard_view:account.automatic.reconcile,reconcile:0 msgid "Reconciliation result" -msgstr "" +msgstr "Afletterresultaat" #. module: account #: model:ir.actions.act_window,name:account.act_account_acount_move_line_open_unreconciled msgid "Unreconciled entries" -msgstr "" +msgstr "Niet afgeletterde boekingen" #. module: account #: field:account.invoice.tax,base_code_id:0 #: field:account.tax,base_code_id:0 #: field:account.tax.template,base_code_id:0 msgid "Base Code" -msgstr "" +msgstr "Basiscode" #. module: account #: view:account.account:0 @@ -2132,7 +2132,8 @@ msgid "Analytic Entry" msgstr "" #. module: account -#: view:res.company:0 field:res.company,overdue_msg:0 +#: view:res.company:0 +#: field:res.company,overdue_msg:0 msgid "Overdue Payments Message" msgstr "" diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py index e4731e2c994..78683b5120b 100644 --- a/addons/account/report/account_balance.py +++ b/addons/account/report/account_balance.py @@ -22,9 +22,15 @@ import xml import copy from operator import itemgetter -import time import datetime from report import report_sxw +import xml.dom.minidom +import os, time +import osv +import re +import tools +import pooler +import sys class account_balance(report_sxw.rml_parse): _name = 'report.account.account.balance' @@ -44,6 +50,10 @@ class account_balance(report_sxw.rml_parse): }) self.context = context + def _add_header(self, node, header=1): + if header==0: + self.rml_header = "" + return True def get_fiscalyear(self, form): res=[] if form.has_key('fiscalyear'): @@ -56,16 +66,14 @@ class account_balance(report_sxw.rml_parse): def get_periods(self, form): result='' - if form.has_key('periods') and form['periods'][0][2]: - period_ids = form['periods'][0][2] - self.cr.execute("select name from account_period where id =ANY(%s)" ,(period_ids)) - res = self.cr.fetchall() - len_res = len(res) - for r in res: - if (r == res[len_res-1]): - result+=r[0]+". " + if form.has_key('periods') and form['periods']: + period_ids = form['periods'] + per_ids = self.pool.get('account.period').browse(self.cr,self.uid,form['periods']) + for r in per_ids: + if r == per_ids[len(per_ids)-1]: + result+=r.name+". " else: - result+=r[0]+", " + result+=r.name+", " else: fy_obj = self.pool.get('account.fiscalyear').browse(self.cr,self.uid,form['fiscalyear']) res = fy_obj.period_ids @@ -172,5 +180,8 @@ class account_balance(report_sxw.rml_parse): def _sum_debit(self): return self.sum_debit -report_sxw.report_sxw('report.account.account.balance', 'account.account', 'addons/account/report/account_balance.rml', parser=account_balance, header=False) + + + +report_sxw.report_sxw('report.account.account.balance', 'account.account', 'addons/account/report/account_balance.rml', parser=account_balance, header=0) # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/report/account_balance.rml b/addons/account/report/account_balance.rml index fb8eb53c418..af4cee7a7ba 100644 --- a/addons/account/report/account_balance.rml +++ b/addons/account/report/account_balance.rml @@ -66,6 +66,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -95,6 +116,8 @@ + + @@ -141,14 +164,46 @@ - + + - [[ get_fiscalyear(data['form']) or removeParentNode('para') ]]: - [[ get_periods(data['form']) or removeParentNode('para') ]] + Fiscal Year + + + End Date + + + Start Date + + + Display Account + + + Periods - + + + + + [[ get_fiscalyear(data['form']) ]] + + + [[ data['form']['date_from'] ]] + + + [[ data['form']['date_to'] ]] + + + [[ (data['form']['display_account']=='bal_all' and 'All') or (data['form']['display_account']=='bal_mouvement' and 'With movements') or 'With balance is not equal to 0']] + + + [[data['form']['periods'] and get_periods(data['form']) or '']] + + + + diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml index 00dec853486..b48ccc55daa 100644 --- a/addons/account_budget/crossovered_budget_view.xml +++ b/addons/account_budget/crossovered_budget_view.xml @@ -178,12 +178,33 @@ + + crossovered.budget.search + crossovered.budget + search + + + + + + + + + + + + + + + + Budget crossovered.budget form tree,form +