@ -74,8 +74,18 @@
<record id= "sql_parameter_view_form" model= "ir.ui.view" >
<record id= "sql_parameter_view_form" model= "ir.ui.view" >
<field name= "name" > Sql_parameter_form_view</field>
<field name= "name" > Sql_parameter_form_view</field>
<field name= "model" > ir.model.fields</field>
<field name= "model" > ir.model.fields</field>
<field name= "priority" > 150</field>
<field name= "arch" type= "xml" >
<field name= "arch" type= "xml" >
<form string= "SQL export" >
<form string= "SQL export" >
<group >
<field name= "name" />
<field name= "field_description" />
<field name= "ttype" />
<field name= "relation" attrs= "{'invisible': [('ttype', 'not in', ('many2one', 'many2many', 'one2many'))], 'required': [('ttype', 'in', ('many2one', 'many2many', 'one2many'))]}" />
<field name= "model_id" readonly= "1" />
<field name= "model" invisible= "1" />
<field name= "required" />
</group>
</form>
</form>
</field>
</field>
</record>
</record>
@ -83,22 +93,40 @@
<record id= "sql_parameter_view_tree" model= "ir.ui.view" >
<record id= "sql_parameter_view_tree" model= "ir.ui.view" >
<field name= "name" > Sql_parameter_tree_view</field>
<field name= "name" > Sql_parameter_tree_view</field>
<field name= "model" > ir.model.fields</field>
<field name= "model" > ir.model.fields</field>
<field name= "priority" > 150</field>
<field name= "arch" type= "xml" >
<field name= "arch" type= "xml" >
<tree string= "SQL Parameter" >
<tree string= "SQL Parameter" >
<field name= "name" />
<field name= "name" />
<field name= "field_description" />
<field name= "ttype" />
<field name= "required" />
</tree>
</tree>
</field>
</field>
</record>
</record>
<record id= "sql_parameter_tree_ action" model= "ir.actions.act_window" >
<record id= "sql_parameter_action" model= "ir.actions.act_window" >
<field name= "name" > SQL Parameter</field>
<field name= "name" > SQL Parameter</field>
<field name= "res_model" > ir.model.fields</field>
<field name= "res_model" > ir.model.fields</field>
<field name= "view_type" > form</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_mode" > tree,form</field>
<field name= "context" eval= "{'default_model_id': ref('sql_export.model_sql_file_wizard'), 'default_size': 64, 'search_default_state': 'manual'}" />
<field name= "context" eval= "{'default_model_id': ref('sql_export.model_sql_file_wizard'), 'default_size': 64, 'search_default_state': 'manual', 'default_model': 'sql.file.wizard' }" />
<field name= "domain" > [('model','=','sql.file.wizard')]</field>
<field name= "domain" > [('model','=','sql.file.wizard')]</field>
</record>
</record>
<menuitem id= "sql_parameter_menu_view" name= "Sql Export Variables" parent= "sql_export_menu" action= "sql_parameter_tree_action" sequence= "5" groups= "sql_request_abstract.group_sql_request_manager" />
<record id= "sql_parameter_action_view_tree" model= "ir.actions.act_window.view" >
<field name= "sequence" eval= "1" />
<field name= "view_mode" > tree</field>
<field name= "view_id" ref= "sql_parameter_view_tree" />
<field name= "act_window_id" ref= "sql_parameter_action" />
</record>
<record id= "sql_parameter_action_view_form" model= "ir.actions.act_window.view" >
<field name= "sequence" eval= "2" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "sql_parameter_view_form" />
<field name= "act_window_id" ref= "sql_parameter_action" />
</record>
<menuitem id= "sql_parameter_menu_view" name= "Sql Export Variables" parent= "sql_export_menu" action= "sql_parameter_action" sequence= "5" groups= "sql_request_abstract.group_sql_request_manager" />
</odoo>
</odoo>