[FIX] select rate when installing generic chart
authorFabien Pinckaers <fp@tinyerp.com>
Fri, 30 Dec 2011 15:16:00 +0000 (16:16 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Fri, 30 Dec 2011 15:16:00 +0000 (16:16 +0100)
bzr revid: fp@tinyerp.com-20111230151600-vwsj877ip2btv5s7

addons/account/account.py
addons/account/account_view.xml

index b8dd15c..700164d 100644 (file)
@@ -2980,9 +2980,7 @@ class wizard_multi_charts_accounts(osv.osv_memory):
         tax_templ_obj = self.pool.get('account.tax.template')
 
         if 'bank_accounts_id' in fields:
-            res.update({'bank_accounts_id': [{'acc_name': _('Current'), 'account_type': 'bank'},
-                    {'acc_name': _('Deposit'), 'account_type': 'bank'},
-                    {'acc_name': _('Cash'), 'account_type': 'cash'}]})
+            res.update({'bank_accounts_id': [{'acc_name': _('Cash'), 'account_type': 'cash'}]})
         if 'company_id' in fields:
             res.update({'company_id': self.pool.get('res.users').browse(cr, uid, [uid], context=context)[0].company_id.id})
         if 'seq_journal' in fields:
index 25faae5..6742132 100644 (file)
                     <field name ="seq_journal" groups="base.group_extended"/>
                     <field name="sale_tax" attrs="{'invisible': [('complete_tax_set', '!=', True)]}" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('sale','all'))]"/>
                     <field name="purchase_tax" attrs="{'invisible': [('complete_tax_set', '!=', True)]}" domain="[('chart_template_id', '=', chart_template_id),('parent_id','=',False),('type_tax_use','in',('purchase', 'all'))]"/>
+                    <newline/>
                     <field name ="sale_tax_rate" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
                     <field name ="purchase_tax_rate" attrs="{'invisible': [('complete_tax_set', '=', True)]}"/>
                     <field name ="complete_tax_set" invisible="1"/>