From 12c91c1de7de511fa3cf4773afa5d57076f5a008 Mon Sep 17 00:00:00 2001 From: qdp Date: Thu, 15 Jan 2009 18:11:53 +0100 Subject: [PATCH 1/2] [FIX] bugfixed the generating of account chart from template (fiscal position) bzr revid: qdp@tinyerp.com-20090115171153-ewsunr857tsuj3xk --- addons/account/account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 0d77cc2de9b..8cf7f5c89ec 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1874,6 +1874,7 @@ class account_fiscal_position_template(osv.osv): _columns = { 'name': fields.char('Fiscal Position Template', size=64, translate=True, required=True), + 'chart_template_id': fields.many2one('account.chart.template', 'Chart Template', required=True), 'account_ids': fields.one2many('account.fiscal.position.account.template', 'position_id', 'Accounts Mapping'), 'tax_ids': fields.one2many('account.fiscal.position.tax.template', 'position_id', 'Taxes Mapping') } @@ -2153,7 +2154,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): #create the property property_obj.create(cr, uid, vals) - fp_ids = obj_fiscal_position_template.search(cr, uid,[]) + fp_ids = obj_fiscal_position_template.search(cr, uid,[('chart_template_id', '=', obj_multi.chart_template_id.id)]) if fp_ids: for position in obj_fiscal_position_template.browse(cr, uid, fp_ids): From 0ca40fec5e1609aefc892d287db711c8ffb6b008 Mon Sep 17 00:00:00 2001 From: qdp Date: Thu, 15 Jan 2009 18:13:19 +0100 Subject: [PATCH 2/2] [FIX] bugfixed the demo data of l10n_be: fiscal position (couldn't generate more than once the chart of account) [IMP] improved demo data for fiscal position on l10n_be bzr revid: qdp@tinyerp.com-20090115171319-oukbbqldmsr5vvs1 --- addons/l10n_be/fiscal_templates.xml | 65 +++++++++++++---------------- 1 file changed, 30 insertions(+), 35 deletions(-) diff --git a/addons/l10n_be/fiscal_templates.xml b/addons/l10n_be/fiscal_templates.xml index 9d54a94b29b..a612ec4b1ab 100644 --- a/addons/l10n_be/fiscal_templates.xml +++ b/addons/l10n_be/fiscal_templates.xml @@ -5,65 +5,60 @@ - Fiscal Position for Sale + En Belgique + - Fiscal Position for Purchase + Dans l'U.E + - - - + + + - - - + + + - - - - - - - - - - - - - + - - + + - - - - - - - + - - + + - - + + + + + + + + + + + + + - \ No newline at end of file +