feat(shopfloor): create fp_tablet_kiosk user

Kiosk holds the tablet session when no tech is PIN-unlocked.
Password is auto-generated by the post-migrate hook (Task A5).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-24 12:06:00 -04:00
parent 258782e3c3
commit b67186a25b

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!-- Tablet kiosk user. noupdate="1" so manual password changes via
the user form aren't reverted on -u. The post-migrate hook
generates a random password on first install and stores it
in ir.config_parameter for sysadmin retrieval. -->
<record id="user_fp_tablet_kiosk" model="res.users">
<field name="login">fp_tablet_kiosk@enplating.local</field>
<field name="name">Tablet Kiosk</field>
<field name="active" eval="True"/>
<field name="share" eval="False"/>
<field name="group_ids" eval="[
(4, ref('base.group_user')),
(4, ref('fusion_plating_shopfloor.group_fp_tablet_kiosk')),
]"/>
</record>
</odoo>