123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record model="ir.sequence.type" id="seq_ehtml_id">
- <field name="name">eHTML Field Sequence</field>
- <field name="code">ehtml.fieldentry</field>
- </record>
- <record id="ehtml_seq_id" model="ir.sequence">
- <field name="name">eHTML Field Sequence</field>
- <field name="code">ehtml.fieldentry</field>
- </record>
- <record model="ir.ui.view" id="ehtml_form_view">
- <field name="name">ehtml form</field>
- <field name="model">ehtml.formgen</field>
- <field name="arch" type="xml">
- <form string="HTML Form">
- <sheet>
- <group>
- <field name="name"/>
- <field name="return_url" placeholder="http://www.google.com.au"/>
- <field name="model_id"/>
- <field name="form_type"/>
- <field name="fields_ids" context="{'html_id': active_id,'default_model_id':model_id}">
- <tree editable="bottom">
- <field name="model_id" invisible="1"/>
- <field name="model" invisible="1"/>
- <field name="sequence" widget="handle"/>
- <field name="field_id" domain="[('name','!=','create_date'),('name','!=','create_uid'),('name','!=','id'),('name','!=','write_date'),('name','!=','write_uid'),('model_id','=',model)]"/>
- <field name="html_name"/>
- <field name="field_label"/>
- <field name="html_field_type"/>
- </tree>
- </field>
-
- <field name="defaults_values" context="{'html_id': active_id,'default_model_id':model_id}">
- <tree editable="bottom">
- <field name="model_id" invisible="1"/>
- <field name="model" invisible="1" />
- <field name="field_id" domain="[('name','!=','create_date'),('name','!=','create_uid'),('name','!=','id'),('name','!=','write_date'),('name','!=','write_uid'),('model_id','=',model)]"/>
- <field name="default_value"/>
- </tree>
- </field>
-
- <field name="output_html"/>
- </group>
- <footer>
- <button type="object" name="generate_form" string="Make Embed Code"/>
- </footer>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="ehtml_history_form_view">
- <field name="name">ehtml History Form</field>
- <field name="model">ehtml.history</field>
- <field name="arch" type="xml">
- <form string="HTML Form History">
- <sheet>
- <group>
- <field name="html_id"/>
- <field name="ref_url"/>
- <field name="record_id"/>
- <field name="insert_data">
- <tree>
- <field name="field_id"/>
- <field name="insert_value"/>
- </tree>
- </field>
- </group>
- </sheet>
- </form>
- </field>
- </record>
-
- <record model="ir.ui.view" id="ehtml_history_tree_view">
- <field name="name">ehtml History Tree</field>
- <field name="model">ehtml.history</field>
- <field name="arch" type="xml">
- <tree string="HTML Embed Form History Tree">
- <field name="form_name"/>
- <field name="ref_url"/>
- </tree>
- </field>
- </record>
-
- <record model="ir.actions.act_window" id="ehtml_action">
- <field name="name">HTML</field>
- <field name="res_model">ehtml.formgen</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">Create the first HTML Embed form</p>
- </field>
- </record>
-
- <record model="ir.actions.act_window" id="ehtml_history_action">
- <field name="name">HTML</field>
- <field name="res_model">ehtml.history</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">Create the first HTML Embed form</p>
- </field>
- </record>
-
-
- <menuitem id="ehtml_menu" name="HTML Embed Forms" parent="base.menu_custom" sequence="160"/>
- <menuitem id="ehtml_menu_insert" name="Create Forms" parent="ehtml_menu" action="ehtml_action" sequence="170"/>
- <menuitem id="ehtml_menu_history" name="Inserted Form Data" parent="ehtml_menu" action="ehtml_history_action" sequence="180"/>
-
- </data>
- </openerp>
|