feat(invoicing): strategy auto-fill + hold check + deposit/COD automation + menu

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-12 19:36:27 -04:00
parent 10e3ada9e9
commit 7dea212c13
4 changed files with 172 additions and 2 deletions

View File

@@ -5,4 +5,21 @@
Part of the Fusion Plating product family.
-->
<odoo>
<!-- ===== Account hold warning banner on SO form ===== -->
<record id="view_sale_order_form_hold_banner" model="ir.ui.view">
<field name="name">sale.order.form.fp.hold.banner</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//form/header" position="before">
<div class="alert alert-danger" role="alert"
invisible="not partner_id or not partner_id.x_fc_account_hold">
<strong>Account Hold</strong> — This customer is on account hold.
SO confirmation, invoicing, and shipping are blocked for non-managers.
</div>
</xpath>
</field>
</record>
</odoo>