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.

73 lines
3.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="type">form</field>
  8. <field name="arch" type="xml">
  9. <form string="Object">
  10. <field name="name"/>
  11. <field name="model_id" on_change="onchange_model(model_id)"/>
  12. <field name="model_ids" invisible="1"/>
  13. <notebook colspan="4">
  14. <page string="Fields">
  15. <field name="field_ids" colspan="4" nolabel="1"
  16. domain="[('ttype', 'not in', ['reference','function']), ('model_id', 'in', model_ids[0][2])]"/>
  17. </page>
  18. <page string="Advanced">
  19. <group colspan="2" col="2">
  20. <button name="create_action" string="Add sidebar button" type="object" icon="gtk-execute"
  21. colspan="2" attrs="{'invisible':[('ref_ir_act_window','!=',False)]}"
  22. help="Display a button in the sidebar of related documents to open a composition wizard"/>
  23. <field name="ref_ir_act_window" attrs="{'invisible':[('ref_ir_act_window','=',False)]}"/>
  24. <field name="ref_ir_value" attrs="{'invisible':[('ref_ir_act_window','=',False)]}"/>
  25. <button name="unlink_action" string="Remove sidebar button" type="object" icon="gtk-delete"
  26. attrs="{'invisible':[('ref_ir_act_window','=',False)]}" colspan="2" />
  27. </group>
  28. </page>
  29. </notebook>
  30. </form>
  31. </field>
  32. </record>
  33. <record model="ir.ui.view" id="view_mass_object_tree">
  34. <field name="name">mass.object.tree</field>
  35. <field name="model">mass.object</field>
  36. <field name="type">form</field>
  37. <field name="arch" type="xml">
  38. <tree string="Object">
  39. <field name="name"/>
  40. <field name="model_id"/>
  41. </tree>
  42. </field>
  43. </record>
  44. <record model="ir.actions.act_window" id="action_mass_object_form">
  45. <field name="name">Mass Editing</field>
  46. <field name="res_model">mass.object</field>
  47. <field name="view_type">form</field>
  48. <field name="view_mode">tree,form</field>
  49. <field name="view_id" ref="view_mass_object_tree" />
  50. </record>
  51. <record id="action_mass_object_form_view1" model="ir.actions.act_window.view">
  52. <field eval="10" name="sequence"/>
  53. <field name="view_mode">tree</field>
  54. <field name="view_id" ref="view_mass_object_tree"/>
  55. <field name="act_window_id" ref="action_mass_object_form"/>
  56. </record>
  57. <record id="action_mass_object_form_view2" model="ir.actions.act_window.view">
  58. <field eval="20" name="sequence"/>
  59. <field name="view_mode">form</field>
  60. <field name="view_id" ref="view_mass_object_form"/>
  61. <field name="act_window_id" ref="action_mass_object_form"/>
  62. </record>
  63. <menuitem id="menu_mass_editing" name="Mass Editing" parent="base.menu_config" sequence="6"/>
  64. <menuitem id="menu_mass_object_view" action="action_mass_object_form" parent="menu_mass_editing"/>
  65. </data>
  66. </openerp>