entity_html_form.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.sequence.type" id="seq_ehtml_id">
  5. <field name="name">eHTML Field Sequence</field>
  6. <field name="code">ehtml.fieldentry</field>
  7. </record>
  8. <record id="ehtml_seq_id" model="ir.sequence">
  9. <field name="name">eHTML Field Sequence</field>
  10. <field name="code">ehtml.fieldentry</field>
  11. </record>
  12. <record model="ir.ui.view" id="ehtml_form_view">
  13. <field name="name">ehtml form</field>
  14. <field name="model">ehtml.formgen</field>
  15. <field name="arch" type="xml">
  16. <form string="HTML Form">
  17. <sheet>
  18. <group>
  19. <field name="name"/>
  20. <field name="return_url" placeholder="http://www.google.com.au"/>
  21. <field name="model_id"/>
  22. <field name="form_type"/>
  23. <field name="fields_ids" context="{'html_id': active_id,'default_model_id':model_id}">
  24. <tree editable="bottom">
  25. <field name="model_id" invisible="1"/>
  26. <field name="model" invisible="1"/>
  27. <field name="sequence" widget="handle"/>
  28. <field name="field_id" domain="[('name','!=','create_date'),('name','!=','create_uid'),('name','!=','id'),('name','!=','write_date'),('name','!=','write_uid'),('model_id','=',model)]"/>
  29. <field name="html_name"/>
  30. <field name="field_label"/>
  31. <field name="html_field_type"/>
  32. </tree>
  33. </field>
  34. <field name="defaults_values" context="{'html_id': active_id,'default_model_id':model_id}">
  35. <tree editable="bottom">
  36. <field name="model_id" invisible="1"/>
  37. <field name="model" invisible="1" />
  38. <field name="field_id" domain="[('name','!=','create_date'),('name','!=','create_uid'),('name','!=','id'),('name','!=','write_date'),('name','!=','write_uid'),('model_id','=',model)]"/>
  39. <field name="default_value"/>
  40. </tree>
  41. </field>
  42. <field name="output_html"/>
  43. </group>
  44. <footer>
  45. <button type="object" name="generate_form" string="Make Embed Code"/>
  46. </footer>
  47. </sheet>
  48. </form>
  49. </field>
  50. </record>
  51. <record model="ir.ui.view" id="ehtml_history_form_view">
  52. <field name="name">ehtml History Form</field>
  53. <field name="model">ehtml.history</field>
  54. <field name="arch" type="xml">
  55. <form string="HTML Form History">
  56. <sheet>
  57. <group>
  58. <field name="html_id"/>
  59. <field name="ref_url"/>
  60. <field name="record_id"/>
  61. <field name="insert_data">
  62. <tree>
  63. <field name="field_id"/>
  64. <field name="insert_value"/>
  65. </tree>
  66. </field>
  67. </group>
  68. </sheet>
  69. </form>
  70. </field>
  71. </record>
  72. <record model="ir.ui.view" id="ehtml_history_tree_view">
  73. <field name="name">ehtml History Tree</field>
  74. <field name="model">ehtml.history</field>
  75. <field name="arch" type="xml">
  76. <tree string="HTML Embed Form History Tree">
  77. <field name="form_name"/>
  78. <field name="ref_url"/>
  79. </tree>
  80. </field>
  81. </record>
  82. <record model="ir.actions.act_window" id="ehtml_action">
  83. <field name="name">HTML</field>
  84. <field name="res_model">ehtml.formgen</field>
  85. <field name="view_type">form</field>
  86. <field name="view_mode">tree,form</field>
  87. <field name="help" type="html">
  88. <p class="oe_view_nocontent_create">Create the first HTML Embed form</p>
  89. </field>
  90. </record>
  91. <record model="ir.actions.act_window" id="ehtml_history_action">
  92. <field name="name">HTML</field>
  93. <field name="res_model">ehtml.history</field>
  94. <field name="view_type">form</field>
  95. <field name="view_mode">tree,form</field>
  96. <field name="help" type="html">
  97. <p class="oe_view_nocontent_create">Create the first HTML Embed form</p>
  98. </field>
  99. </record>
  100. <menuitem id="ehtml_menu" name="HTML Embed Forms" parent="base.menu_custom" sequence="160"/>
  101. <menuitem id="ehtml_menu_insert" name="Create Forms" parent="ehtml_menu" action="ehtml_action" sequence="170"/>
  102. <menuitem id="ehtml_menu_history" name="Inserted Form Data" parent="ehtml_menu" action="ehtml_history_action" sequence="180"/>
  103. </data>
  104. </openerp>