ir_model.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="custom_access_view_tree" model="ir.ui.view">
  4. <field name="name">ir.model.access.view.tree</field>
  5. <field name="model">ir.model.access</field>
  6. <field name="inherit_id" ref="base.ir_access_view_tree"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='perm_unlink']" position="after">
  9. <field name="perm_check"/>
  10. <field name="perm_uncheck"/>
  11. <field name="perm_finish"/>
  12. <field name="perm_unfinish"/>
  13. <field name="perm_nullify"/>
  14. <field name="perm_un_nullify"/>
  15. </xpath>
  16. </field>
  17. </record>
  18. <record id="custom_ir_access_view_tree_edition" model="ir.ui.view">
  19. <field name="name">ir.model.access.view.tree.edition</field>
  20. <field name="model">ir.model.access</field>
  21. <field name="inherit_id" ref="base.ir_access_view_tree_edition"/>
  22. <field name="arch" type="xml">
  23. <xpath expr="//field[@name='perm_unlink']" position="after">
  24. <field name="perm_check"/>
  25. <field name="perm_uncheck"/>
  26. <field name="perm_finish"/>
  27. <field name="perm_unfinish"/>
  28. <field name="perm_nullify"/>
  29. <field name="perm_un_nullify"/>
  30. </xpath>
  31. </field>
  32. </record>
  33. <record id="custom_ir_access_view_form" model="ir.ui.view">
  34. <field name="model">ir.model.access</field>
  35. <field name="inherit_id" ref="base.ir_access_view_form"/>
  36. <field name="arch" type="xml">
  37. <xpath expr="//field[@name='perm_unlink']" position="after">
  38. <field name="perm_check"/>
  39. <field name="perm_uncheck"/>
  40. <field name="perm_finish"/>
  41. <field name="perm_unfinish"/>
  42. <field name="perm_nullify"/>
  43. <field name="perm_un_nullify"/>
  44. </xpath>
  45. </field>
  46. </record>
  47. </odoo>