better view of configuration wizard of document module
bzr revid: hmo@tinyerp.com-20081013074124-hw990ydbctp36p71
This commit is contained in:
parent
2e3683a640
commit
cef660021d
|
@ -597,8 +597,8 @@ class document_file(osv.osv):
|
|||
return super(document_file, self).unlink(cr, uid, ids, context)
|
||||
document_file()
|
||||
|
||||
class auto_configuration(osv.osv_memory):
|
||||
_name='auto.configuration'
|
||||
class document_configuration_wizard(osv.osv_memory):
|
||||
_name='document.configuration.wizard'
|
||||
_rec_name = 'Auto Directory configuration'
|
||||
_columns = {
|
||||
}
|
||||
|
@ -687,4 +687,4 @@ class auto_configuration(osv.osv_memory):
|
|||
doc_obj.create(cr,uid,res)
|
||||
return True
|
||||
|
||||
auto_configuration()
|
||||
document_configuration_wizard()
|
||||
|
|
|
@ -201,21 +201,31 @@
|
|||
|
||||
<record id="view_auto_config_form" model="ir.ui.view">
|
||||
<field name="name">Auto Configure Directory</field>
|
||||
<field name="model">auto.configuration</field>
|
||||
<field name="model">document.configuration.wizard</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Auto Configure">
|
||||
<label string="" colspan="2"/>
|
||||
<separator string="Connect to Document Management System." colspan="4"/>
|
||||
<label align="0.0" string="You can use ftp://admin:admin@localhost:8021 " colspan="4"/>
|
||||
<separator string="Configure Ressources Directory :" colspan="4"/>
|
||||
<newline/>
|
||||
<label string="Do you want to configure Directory Automatically ?" colspan="2"/>
|
||||
<label string="'All Sales Order' -> sale.order" align="0.0" colspan="4"/>
|
||||
<label string="'Sales by Salesman' -> res.users" align="0.0" colspan="4"/>
|
||||
<label string="'Personnal Folders' -> res.users" align="0.0" colspan="4"/>
|
||||
<label string="'Projects' -> account.analytic.account with ressource tree" align="0.0" colspan="4"/>
|
||||
<separator string="New Directories." colspan="4"/>
|
||||
<label string="'Sales' -> sale.order which is link directory of 'res.users' model" align="0.0" colspan="4"/>
|
||||
<label align="0.0" string="'Quotation','Meetings','Analysis Reports' -> static directories which are link directories of 'account.analytic.account' model" colspan="4"/>
|
||||
<newline/>
|
||||
<newline/>
|
||||
<separator string="" colspan="4"/>
|
||||
<label string="" colspan="2"/>
|
||||
<group col="4" colspan="2">
|
||||
<button special="cancel" string="Cancel" name="action_cancel" type="object" icon='gtk-cancel'/>
|
||||
<button name="action_config" string="Configure" icon='gtk-ok' type="object"/>
|
||||
</group>
|
||||
<newline/>
|
||||
<label string="You Can use ftp://admin:admin@localhost:8021 " colspan="2"/>
|
||||
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -223,7 +233,7 @@
|
|||
<record id="action_config_auto_directory" model="ir.actions.act_window">
|
||||
<field name="name">Auto Configure Directory</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">auto.configuration</field>
|
||||
<field name="res_model">document.configuration.wizard</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
|
@ -232,6 +242,7 @@
|
|||
<record model="ir.actions.todo"
|
||||
id="config_auto_directory">
|
||||
<field name="name">Auto Configure Directory</field>
|
||||
<field name="note">This wizard will be configure directory for ressource model.</field>
|
||||
<field name="action_id" ref="action_config_auto_directory"/>
|
||||
<field name="state">open</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue