feat(invoicing): module scaffold + strategy defaults + account hold
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?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="view_partner_form_account_hold" model="ir.ui.view">
|
||||
<field name="name">res.partner.form.fp.account.hold</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="before">
|
||||
<div class="alert alert-danger mb-0" role="alert"
|
||||
invisible="not x_fc_account_hold">
|
||||
<strong>Account Hold Active</strong> —
|
||||
<field name="x_fc_account_hold_reason" readonly="1" nolabel="1"/>
|
||||
<br/>
|
||||
<small>
|
||||
Placed by <field name="x_fc_account_hold_by_id" readonly="1" nolabel="1"/>
|
||||
on <field name="x_fc_account_hold_date" readonly="1" nolabel="1"/>
|
||||
</small>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Account Hold" name="account_hold_tab"
|
||||
groups="fusion_plating_invoicing.group_fp_accounting">
|
||||
<group>
|
||||
<group>
|
||||
<field name="x_fc_account_hold"/>
|
||||
<field name="x_fc_account_hold_reason"
|
||||
invisible="not x_fc_account_hold"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="x_fc_account_hold_date"
|
||||
invisible="not x_fc_account_hold"/>
|
||||
<field name="x_fc_account_hold_by_id"
|
||||
invisible="not x_fc_account_hold"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user