diff --git a/addons/account/account.py b/addons/account/account.py
index a68b65f865a..fcfb2a41088 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -2602,7 +2602,7 @@ class account_account_template(osv.osv):
children_acc_criteria = [('chart_template_id','=', chart_template_id)]
if template.account_root_id.id:
children_acc_criteria = ['|'] + children_acc_criteria + ['&',('parent_id','child_of', [template.account_root_id.id]),('chart_template_id','=', False)]
- children_acc_template = self.search(cr, uid, [('nocreate','!=',True)] + children_acc_criteria, order='id')
+ children_acc_template = self.search(cr, uid, [('nocreate','!=',True)] + children_acc_criteria, order='id', context=context)
for account_template in self.browse(cr, uid, children_acc_template, context=context):
# skip the root of COA if it's not the main one
if (template.account_root_id.id == account_template.id) and template.parent_id:
diff --git a/addons/account/report/report_vat.py b/addons/account/report/report_vat.py
index edbd81845dc..338a14de89b 100644
--- a/addons/account/report/report_vat.py
+++ b/addons/account/report/report_vat.py
@@ -38,6 +38,7 @@ class tax_report(report_sxw.rml_parse, common_report_header):
'based_on': 'invoices',
'company_id': company_id,
'display_detail': False,
+ 'chart_tax_id': self.pool['account.vat.declaration']._get_tax(self.cr, self.uid),
}
}
self.period_ids = []
diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml
index 07a7b1f2cab..5c4aa9afde8 100644
--- a/addons/account_voucher/voucher_payment_receipt_view.xml
+++ b/addons/account_voucher/voucher_payment_receipt_view.xml
@@ -141,7 +141,7 @@
-
+