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): 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 +