resource_calendar_views.xml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="resource_calendar_view_tree" model="ir.ui.view">
  4. <field name="name">resource.calendar.view.tree.inherit.hr.contract</field>
  5. <field name="model">resource.calendar</field>
  6. <field name="inherit_id" ref="resource.view_resource_calendar_tree"/>
  7. <field name="arch" type="xml">
  8. <field name="company_id" position="after">
  9. <field name="contracts_count"/>
  10. </field>
  11. </field>
  12. </record>
  13. <record id="resource_calendar_view_form" model="ir.ui.view">
  14. <field name="name">resource.calendar.view.form.inherit.hr.contract</field>
  15. <field name="model">resource.calendar</field>
  16. <field name="inherit_id" ref="resource.resource_calendar_form"/>
  17. <field name="arch" type="xml">
  18. <div name="button_box" position="inside">
  19. <button class="oe_stat_button" name="action_open_contracts"
  20. type="object" icon="fa-book" groups="hr_contract.group_hr_contract_manager">
  21. <field name="contracts_count" string="Contracts" widget="statinfo"/>
  22. </button>
  23. </div>
  24. </field>
  25. </record>
  26. </odoo>