ir_actions_server.xml 609 B

123456789101112131415
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="ir_actions_server_action_open_presence_view" model="ir.actions.server">
  4. <field name="name">Compute presence and open presence view</field>
  5. <field name="model_id" ref="hr.model_hr_employee" />
  6. <field name="state">code</field>
  7. <field name="code">
  8. action = env['hr.employee']._action_open_presence_view()
  9. </field>
  10. </record>
  11. <menuitem id="menu_hr_presence_view" name="Presence" action="ir_actions_server_action_open_presence_view" parent="hr.hr_menu_hr_reports" groups="hr.group_hr_manager"/>
  12. </odoo>