Copy the "note" field from fiscal position template to fiscal position.
authorAlexis de Lattre <alexis@via.ecp.fr>
Mon, 23 Apr 2012 23:03:30 +0000 (01:03 +0200)
committersebastien beau <sebastien.beau@akretion.com.br>
Mon, 23 Apr 2012 23:03:30 +0000 (01:03 +0200)
bzr revid: alexis@via.ecp.fr-20120423230330-o7ci9j578r3xxquc

addons/account/account.py

index c165a7f..3bbfe10 100644 (file)
@@ -2910,7 +2910,7 @@ class account_fiscal_position_template(osv.osv):
         obj_fiscal_position = self.pool.get('account.fiscal.position')
         fp_ids = self.search(cr, uid, [('chart_template_id', '=', chart_temp_id)])
         for position in self.browse(cr, uid, fp_ids, context=context):
-            new_fp = obj_fiscal_position.create(cr, uid, {'company_id': company_id, 'name': position.name})
+            new_fp = obj_fiscal_position.create(cr, uid, {'company_id': company_id, 'name': position.name, 'note': position.note})
             for tax in position.tax_ids:
                 obj_tax_fp.create(cr, uid, {
                     'tax_src_id': tax_template_ref[tax.tax_src_id.id],