removed temporary code for wizard of bob import.

bzr revid: jvo@tinyerp.com-20080729111824-arlrzjqlha16apv4
This commit is contained in:
Jay Vora
2008-07-29 16:48:24 +05:30
parent b121b744c3
commit ab7203e49e
2 changed files with 1 additions and 71 deletions
+1 -31
View File
@@ -497,6 +497,7 @@ class account_fiscalyear(osv.osv):
_defaults = {
'state': lambda *a: 'draft',
# 'period_ids':lambda *a:[3],
}
_order = "date_start"
def create_period3(self,cr, uid, ids, context={}):
@@ -1812,34 +1813,3 @@ class account_chart_template(osv.osv):
}
account_chart_template()
# Multi charts of Accounts wizard
class wizard_multi_charts_accounts(osv.osv_memory):
_name='wizard.multi.charts.accounts'
_columns = {
'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.bob', 'bank_account_id', 'Bank Accounts',required=True),
}
# def action_cancel(self,cr,uid,ids,conect=None):
# return {}
def action_create(self, cr, uid, ids, context=None):
# print "created"
# TODO: Here :Pending
return {}
wizard_multi_charts_accounts()
class account_bank_accounts_wizard_bob(osv.osv_memory):
_name='account.bank.accounts.wizard.bob'
_columns = {
'acc_no':fields.many2one('res.partner.bank','Account No.',required=True),
'bank_account_id':fields.many2one('wizard.multi.charts.accounts', 'Bank Account', required=True),
'bank_id':fields.many2one('res.bank','Bank', required=True),
'currency_id':fields.many2one('res.currency', 'Currency'),
}
account_bank_accounts_wizard_bob()
-40
View File
@@ -1602,45 +1602,5 @@
<menuitem action="action_account_tax_template_form" id="menu_action_account_tax_template_form" parent="account_account_template_menu"/>
<!-- Wizard for Multi Charts of Accounts : BOB Import -->
<record id="view_wizard_multi_chart" model="ir.ui.view">
<field name="name">Create Multiple Charts of Accounts</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">
<field name="company_id" />
<field name="chart_template_id" />
<field colspan="4" mode="tree" name="bank_accounts_id" nolabel="1" widget="one2many_list">
<form string="Bank Information">
<field name="acc_no"/>
<field name="bank_id"/>
<field name="currency_id"/>
</form>
<tree editable="bottom" string="Bank Information">
<field name="acc_no"/>
<field name="bank_id"/>
<field name="currency_id"/>
</tree>
</field>
<group col="4" colspan="4">
<button icon="gtk-cancel" special="cancel" type="object" string="Cancel"/>
<button icon="gtk-ok" name="action_create" string="Create" type="object"/>
</group>
</form>
</field>
</record>
<record id="action_wizard_multi_chart" model="ir.actions.act_window">
<field name="name">Create Multiple Charts of Accounts</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">wizard.multi.charts.accounts</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem parent="account.menu_finance_configuration" action="action_wizard_multi_chart" id="menu_wizard_bob"/>
</data>
</terp>