Files
Odoo-Modules/fusion_shipping/security/security.xml
gsinghpal be611876ad changes
2026-04-12 09:09:50 -04:00

49 lines
2.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- ================================================================== -->
<!-- MODULE CATEGORY -->
<!-- Creates a "Fusion Shipping" section in Settings Users -->
<!-- ================================================================== -->
<record id="module_category_fusion_shipping" model="ir.module.category">
<field name="name">Fusion Shipping</field>
<field name="sequence">53</field>
</record>
<!-- ================================================================== -->
<!-- PRIVILEGE (Odoo 19 pattern) -->
<!-- ================================================================== -->
<record id="res_groups_privilege_fusion_shipping" model="res.groups.privilege">
<field name="name">Fusion Shipping</field>
<field name="sequence">53</field>
<field name="category_id" ref="module_category_fusion_shipping"/>
</record>
<!-- ================================================================== -->
<!-- USER GROUP -->
<!-- Can view, create, and edit shipments. Cannot delete. -->
<!-- Users without this group have ZERO access to Shipping module. -->
<!-- ================================================================== -->
<record id="group_fusion_shipping_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_shipping"/>
<field name="comment">Can view and manage shipments, create labels, and track packages. Cannot delete shipments or access configuration.</field>
</record>
<!-- ================================================================== -->
<!-- ADMINISTRATOR GROUP -->
<!-- Full CRUD on all models plus Configuration menu. -->
<!-- ================================================================== -->
<record id="group_fusion_shipping_manager" model="res.groups">
<field name="name">Administrator</field>
<field name="sequence">20</field>
<field name="implied_ids" eval="[(4, ref('group_fusion_shipping_user'))]"/>
<field name="privilege_id" ref="res_groups_privilege_fusion_shipping"/>
<field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
<field name="comment">Full access to all shipments including delete. Can manage carrier settings and module configuration.</field>
</record>
</odoo>