|
- [[ o.code ]]
+ [[ o['code'] ]]
|
- [[ o.complete_name ]]
+ [[ o['complete_name'] ]]
|
- [[ formatLang(move_sum_debit(o.id,data['form']['date1'],data['form']['date2'])) ]]
+ [[ formatLang(move_sum(o['id'],data['form']['date1'],data['form']['date2'], 'debit')) ]]
|
- [[ formatLang(move_sum_credit(o.id,data['form']['date1'],data['form']['date2'])) ]]
+ [[ formatLang(move_sum(o['id'],data['form']['date1'],data['form']['date2'], 'credit')) ]]
|
- [[ formatLang(move_sum_balance(o.id,data['form']['date1'],data['form']['date2'])) ]]
+ [[ formatLang(move_sum_balance(o['id'],data['form']['date1'],data['form']['date2'])) ]]
|
- [[ formatLang(move_sum_quantity(o.id,data['form']['date1'],data['form']['date2'])) ]]
+ [[ formatLang(move_sum(o['id'],data['form']['date1'],data['form']['date2'], 'quantity')) ]]
|
|
- [[ repeatIn(lines_g(o.id,data['form']['date1'],data['form']['date2']),'move_g') ]]
+ [[ repeatIn(lines_g(o['id'],data['form']['date1'],data['form']['date2']),'move_g') ]]
[[ move_g['code'] ]]
|
diff --git a/addons/account/project/wizard/wizard_account_analytic_balance_report.py b/addons/account/project/wizard/wizard_account_analytic_balance_report.py
index bb487517354..57c9353ceeb 100644
--- a/addons/account/project/wizard/wizard_account_analytic_balance_report.py
+++ b/addons/account/project/wizard/wizard_account_analytic_balance_report.py
@@ -24,14 +24,16 @@ import time
import wizard
dates_form = '''
-'''
dates_fields = {
- 'date1': {'string':'Start of period', 'type':'date', 'required':True, 'default': lambda *a: time.strftime('%Y-01-01')},
- 'date2': {'string':'End of period', 'type':'date', 'required':True, 'default': lambda *a: time.strftime('%Y-%m-%d')},
+ 'date1': {'string':'Start of Period', 'type':'date', 'required':True, 'default': lambda *a: time.strftime('%Y-01-01')},
+ 'date2': {'string':'End of Period', 'type':'date', 'required':True, 'default': lambda *a: time.strftime('%Y-%m-%d')},
+ 'empty_acc': {'string':'Empty Accounts ? ', 'type':'boolean', 'help':'Check if you want to display Accounts with 0 balance too.'},
}
diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py
index 6f34e9d092f..ebf12dd9b08 100644
--- a/addons/account/report/account_balance.py
+++ b/addons/account/report/account_balance.py
@@ -93,6 +93,7 @@ class account_balance(report_sxw.rml_parse):
res={}
result_acc=[]
ctx = self.context.copy()
+ ctx['state'] = form['context'].get('state','all')
ctx['fiscalyear'] = form['fiscalyear']
if form['state']=='byperiod' :
ctx['periods'] = form['periods'][0][2]
diff --git a/addons/account/report/general_ledger.py b/addons/account/report/general_ledger.py
index ce42653cc58..534b4d52e67 100644
--- a/addons/account/report/general_ledger.py
+++ b/addons/account/report/general_ledger.py
@@ -188,6 +188,7 @@ class general_ledger(rml_parse.rml_parse):
## We will make the test for period or date
## We will now make the test
#
+ ctx['state'] = form['context'].get('state','all')
if form.has_key('fiscalyear'):
ctx['fiscalyear'] = form['fiscalyear']
ctx['periods'] = form['periods'][0][2]
@@ -195,7 +196,6 @@ class general_ledger(rml_parse.rml_parse):
ctx['date_from'] = form['date_from']
ctx['date_to'] = form['date_to']
##
-
#
self.query = self.pool.get('account.move.line')._query_get(self.cr, self.uid, context=ctx)
if account and account.child_consol_ids: # add ids of consolidated childs also of selected account
diff --git a/addons/account/report/general_ledger_landscape.py b/addons/account/report/general_ledger_landscape.py
index ef355526de3..c63c4281173 100644
--- a/addons/account/report/general_ledger_landscape.py
+++ b/addons/account/report/general_ledger_landscape.py
@@ -188,6 +188,7 @@ class general_ledger_landscape(rml_parse.rml_parse):
## We will make the test for period or date
## We will now make the test
#
+ ctx['state'] = form['context'].get('state','all')
if form.has_key('fiscalyear'):
ctx['fiscalyear'] = form['fiscalyear']
ctx['periods'] = form['periods'][0][2]
diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml
index b2a65b73f33..902a9db3e06 100644
--- a/addons/account/report/invoice.rml
+++ b/addons/account/report/invoice.rml
@@ -366,7 +366,7 @@
|