changes
This commit is contained in:
51
fusion_ltc_management/security/security.xml
Normal file
51
fusion_ltc_management/security/security.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- MODULE CATEGORY -->
|
||||
<!-- Creates a "Fusion LTC" section in Settings › Users › Access Rights -->
|
||||
<!-- ================================================================== -->
|
||||
<record id="module_category_fusion_ltc" model="ir.module.category">
|
||||
<field name="name">Fusion LTC</field>
|
||||
<field name="sequence">50</field>
|
||||
</record>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- PRIVILEGE (Odoo 19 pattern) -->
|
||||
<!-- Links groups to the category so they render as a toggle in user -->
|
||||
<!-- settings rather than loose checkboxes. -->
|
||||
<!-- ================================================================== -->
|
||||
<record id="res_groups_privilege_fusion_ltc" model="res.groups.privilege">
|
||||
<field name="name">Fusion LTC</field>
|
||||
<field name="sequence">50</field>
|
||||
<field name="category_id" ref="module_category_fusion_ltc"/>
|
||||
</record>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- USER GROUP -->
|
||||
<!-- Can view, create, and edit LTC records. Cannot delete. -->
|
||||
<!-- Only implies base.group_user — no sales_team dependency. -->
|
||||
<!-- Users without this group have ZERO access to LTC Management. -->
|
||||
<!-- ================================================================== -->
|
||||
<record id="group_fusion_ltc_user" model="res.groups">
|
||||
<field name="name">User</field>
|
||||
<field name="sequence">10</field>
|
||||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
|
||||
<field name="privilege_id" ref="res_groups_privilege_fusion_ltc"/>
|
||||
<field name="comment">Can view and manage LTC facilities, repairs, cleanups, and form submissions. Cannot delete records or access configuration.</field>
|
||||
</record>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- ADMINISTRATOR GROUP -->
|
||||
<!-- Full CRUD on all LTC models plus access to Configuration menu. -->
|
||||
<!-- ================================================================== -->
|
||||
<record id="group_fusion_ltc_manager" model="res.groups">
|
||||
<field name="name">Administrator</field>
|
||||
<field name="sequence">20</field>
|
||||
<field name="implied_ids" eval="[(4, ref('group_fusion_ltc_user'))]"/>
|
||||
<field name="privilege_id" ref="res_groups_privilege_fusion_ltc"/>
|
||||
<field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
|
||||
<field name="comment">Full access to all LTC records including delete. Can manage repair stages and module configuration.</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user