feat(fusion_clock): show NFC clock-in/out photos on the attendance form

The kiosk captures and stores a photo on every tap (x_fclk_check_in_photo /
x_fclk_check_out_photo on hr.attendance), but no view displayed those — the
form only showed the legacy portal field x_fclk_checkin_photo, so the NFC
photos were invisible in the UI. Add a "Verification Photos" group showing the
clock-in and clock-out photos (plus the legacy portal photo), each hidden when
empty. (The activity log has no image field — photos live on the attendance.)

Live as 19.0.3.11.6.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-30 20:06:39 -04:00
parent 2c8ad83d43
commit e2f7fa6d19
2 changed files with 9 additions and 4 deletions

View File

@@ -46,9 +46,14 @@
<field name="x_fclk_is_overtime"/>
</group>
</group>
<group string="Check-In Photo" name="fusion_clock_photo"
invisible="not x_fclk_checkin_photo">
<field name="x_fclk_checkin_photo" widget="image" class="oe_avatar"/>
<group string="Verification Photos" name="fusion_clock_photo"
invisible="not x_fclk_check_in_photo and not x_fclk_check_out_photo and not x_fclk_checkin_photo">
<field name="x_fclk_check_in_photo" widget="image" string="Clock-In Photo"
options="{'size': [200, 200]}" invisible="not x_fclk_check_in_photo"/>
<field name="x_fclk_check_out_photo" widget="image" string="Clock-Out Photo"
options="{'size': [200, 200]}" invisible="not x_fclk_check_out_photo"/>
<field name="x_fclk_checkin_photo" widget="image" string="Portal Check-In Photo"
options="{'size': [200, 200]}" invisible="not x_fclk_checkin_photo"/>
</group>
<group string="Penalties" name="fusion_clock_penalties"
invisible="not x_fclk_penalty_ids">