better view of fiscal year config wizard and also account chart
bzr revid: hmo@tinyerp.com-20080916125011-dphf9rgs2nfjt2id
This commit is contained in:
parent
44dffc7112
commit
994c6d859d
|
@ -1758,7 +1758,7 @@ class wizard_multi_charts_accounts(osv.osv_memory):
|
|||
'company_id':fields.many2one('res.company','Company',required=True),
|
||||
'chart_template_id': fields.many2one('account.chart.template','Chart Template',required=True),
|
||||
'bank_accounts_id': fields.one2many('account.bank.accounts.wizard', 'bank_account_id', 'Bank Accounts',required=True),
|
||||
'code_digits':fields.integer('No. of Digits for Account Code',required=True),
|
||||
'code_digits':fields.integer('# of Digits',required=True,help="No. of Digits to use for account code"),
|
||||
}
|
||||
|
||||
def action_create(self, cr, uid, ids, context=None):
|
||||
|
@ -1980,7 +1980,22 @@ class wizard_multi_charts_accounts(osv.osv_memory):
|
|||
#create the property
|
||||
property_obj.create(cr, uid, vals)
|
||||
|
||||
return {}
|
||||
return {
|
||||
'view_type': 'form',
|
||||
"view_mode": 'form',
|
||||
'res_model': 'ir.module.module.configuration.wizard',
|
||||
'type': 'ir.actions.act_window',
|
||||
'target':'new',
|
||||
}
|
||||
def action_cancel(self,cr,uid,ids,conect=None):
|
||||
return {
|
||||
'view_type': 'form',
|
||||
"view_mode": 'form',
|
||||
'res_model': 'ir.module.module.configuration.wizard',
|
||||
'type': 'ir.actions.act_window',
|
||||
'target':'new',
|
||||
}
|
||||
|
||||
|
||||
wizard_multi_charts_accounts()
|
||||
|
||||
|
|
|
@ -1336,7 +1336,7 @@
|
|||
<field name="date2"/>
|
||||
<separator string="" colspan="4"/>
|
||||
<label string="" colspan="2"/>
|
||||
<group col="4" colspan="4">
|
||||
<group col="2" colspan="2">
|
||||
<button icon="gtk-cancel" special="cancel" string="Don't Create" name="action_cancel" type="object"/>
|
||||
<button icon="gtk-ok" name="action_create" string="Create" type="object"/>
|
||||
</group>
|
||||
|
@ -1576,15 +1576,16 @@
|
|||
<!-- Wizard for Multi Charts of Accounts -->
|
||||
|
||||
<record id="view_wizard_multi_chart" model="ir.ui.view">
|
||||
<field name="name">Create Multiple Charts of Accounts</field>
|
||||
<field name="name">Generate Chart of Accounts from a Chart Template</field>
|
||||
<field name="model">wizard.multi.charts.accounts</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Create Multiple Charts of Accounts">
|
||||
<form string="Generate Chart of Accounts from a Chart Template">
|
||||
<separator col="4" colspan="4" string="Generate Chart of Accounts from a Chart Template"/>
|
||||
<field name="company_id" />
|
||||
<field name="chart_template_id" />
|
||||
<field name ="code_digits" />
|
||||
<field colspan="4" mode="tree" name="bank_accounts_id" nolabel="1" widget="one2many_list">
|
||||
<field name ="code_digits" />
|
||||
<field name="chart_template_id" colspan="4"/>
|
||||
<field colspan="4" mode="tree" name="bank_accounts_id" nolabel="1" widget="one2many_list">
|
||||
<form string="Bank Information">
|
||||
<field name="acc_no"/>
|
||||
<field name="currency_id"/>
|
||||
|
@ -1594,8 +1595,10 @@
|
|||
<field name="currency_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
<group col="4" colspan="4">
|
||||
<button icon="gtk-cancel" special="cancel" type="object" string="Cancel"/>
|
||||
<separator string="" colspan="4"/>
|
||||
<label string="" colspan="2"/>
|
||||
<group col="2" colspan="2">
|
||||
<button icon="gtk-cancel" special="cancel" type="object" name="action_cancel" string="Cancel"/>
|
||||
<button icon="gtk-ok" name="action_create" string="Create" type="object"/>
|
||||
</group>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue