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.

96 lines
4.3 KiB

11 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="view_mass_object_form">
  4. <field name="name">mass.object.form</field>
  5. <field name="model">mass.object</field>
  6. <field name="arch" type="xml">
  7. <form string="Object">
  8. <sheet>
  9. <div class="oe_title">
  10. <label for="name" class="oe_edit_only"/>
  11. <h1>
  12. <field name="name" required="1"/>
  13. </h1>
  14. <group>
  15. <group>
  16. <field name="model_id" required="1" attrs="{'readonly':[('ref_ir_act_window_id','!=',False)]}"/>
  17. </group>
  18. <group>
  19. <field name="model_list" invisible="1"/>
  20. </group>
  21. </group>
  22. </div>
  23. <div class="oe_right oe_button_box" name="buttons">
  24. <field name="ref_ir_act_window_id" invisible="1"/>
  25. <button name="create_action"
  26. type="object"
  27. string="Add Sidebar Button"
  28. class="oe_inline oe_stat_button"
  29. attrs="{'invisible':[('ref_ir_act_window_id','!=',False)]}"
  30. icon="fa-plus"
  31. help="Display a button in the sidebar of related documents to open a composition wizard"/>
  32. <button name="unlink_action"
  33. type="object"
  34. string="Remove Sidebar Button"
  35. class="oe_stat_button" icon="fa-minus"
  36. attrs="{'invisible':[('ref_ir_act_window_id','=',False)]}"
  37. help="Remove the contextual action to use this template on related documents"
  38. widget="statinfo"/>
  39. </div>
  40. <notebook colspan="4">
  41. <page string="Fields">
  42. <field name="field_ids" colspan="4" nolabel="1"
  43. domain="[('ttype', 'not in', ['refenrence', 'function']), ('model_id', 'in', model_list)]"/>
  44. </page>
  45. <page string="Advanced" attrs="{'invisible':[('ref_ir_act_window_id','=',False)]}">
  46. <group colspan="2" col="2">
  47. <field name="ref_ir_act_window_id"/>
  48. <field name="ref_ir_value_id"/>
  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. </odoo>