Grant Odoo Billing (account.group_account_invoice) to group_fp_manager via implied_ids; Quality Manager + Owner inherit it. Billing only (not Accountant); the SO-origin workflow gate in fusion_plating_jobs is unchanged, so managers invoice from the Sale Order's Create Invoice action. Tests assert Manager/Owner get Billing and Shop Manager does not. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
29 lines
1.4 KiB
XML
29 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2026 Nexa Systems Inc.
|
|
License OPL-1 (Odoo Proprietary License v1.0)
|
|
Part of the Fusion Plating product family.
|
|
-->
|
|
<odoo>
|
|
|
|
<record id="group_fp_accounting" model="res.groups">
|
|
<field name="name">[DEPRECATED] Accounting</field>
|
|
<field name="sequence">58</field>
|
|
<field name="privilege_id" ref="fusion_plating.res_groups_privilege_fusion_plating"/>
|
|
<field name="implied_ids" eval="[(4, ref('fusion_plating.group_fusion_plating_supervisor'))]"/>
|
|
<field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
|
|
</record>
|
|
|
|
<!-- Backward-compat: new Manager role implies old Accounting group.
|
|
2026-05-29: Manager (+ QM + Owner via implication) also gets Odoo's
|
|
Billing group so they can create customer invoices from a Sale
|
|
Order. Billing only — not Accountant. The SO-origin workflow gate
|
|
in fusion_plating_jobs is unchanged (off-SO invoices still blocked).
|
|
Spec: docs/superpowers/specs/2026-05-29-manager-invoice-permission-design.md -->
|
|
<record id="fusion_plating.group_fp_manager" model="res.groups">
|
|
<field name="implied_ids" eval="[(4, ref('fusion_plating_invoicing.group_fp_accounting')),
|
|
(4, ref('account.group_account_invoice'))]"/>
|
|
</record>
|
|
|
|
</odoo>
|