From 88a473e7eb438a2af4bf16a91b79b735ad488998 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sat, 23 May 2026 00:17:20 -0400 Subject: [PATCH] feat(fusion_plating_shopfloor): Preferences Set/Change PIN + Manager Reset button (P6.1.7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two view inheritances on res.users: (a) Preferences form — adds a 'Tablet PIN' group with a 'Set / Change Tablet PIN' button that triggers action_open_tablet_pin_setup → the fp_tablet_pin_setup OWL client action (Phase 6.2). Shows PIN Last Set as read-only context. (b) Standard res.users form — header button 'Reset Tablet PIN' visible only to the fusion_plating manager group; hidden when no PIN is set (via the set_date invisible field reference). Confirms before clearing. Calls the clear_tablet_pin method from the model. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_shopfloor/__manifest__.py | 1 + .../views/res_users_views.xml | 58 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 fusion_plating/fusion_plating_shopfloor/views/res_users_views.xml diff --git a/fusion_plating/fusion_plating_shopfloor/__manifest__.py b/fusion_plating/fusion_plating_shopfloor/__manifest__.py index ae2a3253..224a5247 100644 --- a/fusion_plating/fusion_plating_shopfloor/__manifest__.py +++ b/fusion_plating/fusion_plating_shopfloor/__manifest__.py @@ -47,6 +47,7 @@ Copyright (c) 2026 Nexa Systems Inc. All rights reserved. 'data/fp_cron_data.xml', 'data/fp_tablet_config_data.xml', 'views/fp_shopfloor_station_views.xml', + 'views/res_users_views.xml', 'views/fp_bake_oven_views.xml', 'views/fp_bake_window_views.xml', 'views/fp_first_piece_gate_views.xml', diff --git a/fusion_plating/fusion_plating_shopfloor/views/res_users_views.xml b/fusion_plating/fusion_plating_shopfloor/views/res_users_views.xml new file mode 100644 index 00000000..f5200f05 --- /dev/null +++ b/fusion_plating/fusion_plating_shopfloor/views/res_users_views.xml @@ -0,0 +1,58 @@ + + + + + + + res.users.preferences.tablet.pin + res.users + + + + + +