update
This commit is contained in:
39
fusion_clock_ai/views/hr_employee_views.xml
Normal file
39
fusion_clock_ai/views/hr_employee_views.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Employee Form: AI Insights Tab -->
|
||||
<record id="view_employee_form_fusion_clock_ai" model="ir.ui.view">
|
||||
<field name="name">hr.employee.form.fusion.clock.ai</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="fusion_clock.view_employee_form_fusion_clock"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='fusion_clock_tab']" position="after">
|
||||
<page string="AI Insights" name="fusion_clock_ai_tab"
|
||||
groups="fusion_clock.group_fusion_clock_manager,fusion_clock.group_fusion_clock_team_lead">
|
||||
|
||||
<group>
|
||||
<div class="d-flex gap-2 mb-3">
|
||||
<button name="action_generate_ai_summary" type="object"
|
||||
string="Generate AI Summary" class="btn-primary"
|
||||
icon="fa-magic"/>
|
||||
<button name="action_generate_coach_tip" type="object"
|
||||
string="Generate Coach Tip" class="btn-secondary"
|
||||
icon="fa-lightbulb-o"/>
|
||||
</div>
|
||||
</group>
|
||||
|
||||
<group string="AI Attendance Summary">
|
||||
<field name="x_fclk_ai_summary" nolabel="1" colspan="2"/>
|
||||
<field name="x_fclk_ai_summary_date"/>
|
||||
</group>
|
||||
|
||||
<group string="AI Coach Tip">
|
||||
<field name="x_fclk_ai_coach_tip" nolabel="1" colspan="2"/>
|
||||
</group>
|
||||
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user