You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
4.6 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_mass_object_form">
  5. <field name="name">mass.object.form</field>
  6. <field name="model">mass.object</field>
  7. <field name="arch" type="xml">
  8. <form string="Object">
  9. <sheet>
  10. <div class="oe_title">
  11. <label for="name" class="oe_edit_only" />
  12. <h1>
  13. <field name="name" required="1" />
  14. </h1>
  15. <group>
  16. <field name="model_id" required="1"
  17. on_change="onchange_model_id(model_id)" />
  18. <field name="model_ids" invisible="1" />
  19. </group>
  20. </div>
  21. <div class="oe_right oe_button_box" name="buttons">
  22. <field name="ref_ir_act_window"
  23. invisible="1" />
  24. <button class="oe_inline oe_stat_button"
  25. name="create_action" type="object"
  26. attrs="{'invisible':[('ref_ir_act_window','!=',False)]}"
  27. icon="fa-plus"
  28. help="Display a button in the sidebar of related documents to open a composition wizard">
  29. <div>Add<br />Sidebar Button</div>
  30. </button>
  31. <button name="unlink_action" type="object"
  32. class="oe_stat_button" icon="fa-minus"
  33. attrs="{'invisible':[('ref_ir_act_window','=',False)]}"
  34. help="Remove the contextual action to use this template on related documents"
  35. widget="statinfo">
  36. <div>Remove<br />Sidebar Button</div>
  37. </button>
  38. </div>
  39. <notebook colspan="4">
  40. <page string="Fields">
  41. <field name="field_ids" colspan="4"
  42. nolabel="1"
  43. domain="[('ttype', 'not in', ['reference', 'function']), ('model_id', 'in', model_ids[0][2])]" />
  44. </page>
  45. <page string="Advanced" attrs="{'invisible':[('ref_ir_act_window','=',False)]}">
  46. <group colspan="2" col="2">
  47. <field name="ref_ir_act_window" />
  48. <field name="ref_ir_value" />
  49. </group>
  50. </page>
  51. </notebook>
  52. </sheet>
  53. </form>
  54. </field>
  55. </record>
  56. <record model="ir.ui.view" id="view_mass_object_tree">
  57. <field name="name">mass.object.tree</field>
  58. <field name="model">mass.object</field>
  59. <field name="arch" type="xml">
  60. <tree string="Object">
  61. <field name="name" />
  62. <field name="model_id" />
  63. </tree>
  64. </field>
  65. </record>
  66. <record model="ir.actions.act_window" id="action_mass_object_form">
  67. <field name="name">Mass Editing</field>
  68. <field name="res_model">mass.object</field>
  69. <field name="view_type">form</field>
  70. <field name="view_mode">tree,form</field>
  71. <field name="view_id" ref="view_mass_object_tree" />
  72. </record>
  73. <record id="action_mass_object_form_view1" model="ir.actions.act_window.view">
  74. <field eval="10" name="sequence" />
  75. <field name="view_mode">tree</field>
  76. <field name="view_id" ref="view_mass_object_tree" />
  77. <field name="act_window_id" ref="action_mass_object_form" />
  78. </record>
  79. <record id="action_mass_object_form_view2" model="ir.actions.act_window.view">
  80. <field eval="20" name="sequence" />
  81. <field name="view_mode">form</field>
  82. <field name="view_id" ref="view_mass_object_form" />
  83. <field name="act_window_id" ref="action_mass_object_form" />
  84. </record>
  85. <menuitem id="menu_mass_editing" name="Mass Editing"
  86. parent="base.menu_administration" sequence="6" />
  87. <menuitem id="menu_mass_object_view" action="action_mass_object_form"
  88. parent="menu_mass_editing" />
  89. </data>
  90. </openerp>