Files
Odoo-Modules/fusion_plating/fusion_plating_invoicing/views/res_partner_views.xml
gsinghpal a2fe1fcbcc changes
2026-04-29 03:35:33 -04:00

77 lines
3.6 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="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>
<!-- Single "Plating Defaults" tab — invoice strategy, delivery,
deadlines, tax type, payment terms. Set once here, cascades
onto every new SO for this customer. -->
<xpath expr="//notebook" position="inside">
<page string="Plating Defaults" name="fp_plating_defaults_tab"
invisible="is_company == False and parent_id"
groups="fusion_plating_invoicing.group_fp_accounting">
<p class="text-muted">
Set defaults once per customer to speed up order entry.
These cascade onto every new sale order; the estimator
can override per order.
</p>
<group>
<group string="Invoicing">
<field name="x_fc_default_invoice_strategy"/>
<field name="x_fc_default_deposit_percent"
invisible="x_fc_default_invoice_strategy != 'deposit'"/>
<field name="property_payment_term_id"/>
<field name="property_account_position_id"
string="Tax Type (Fiscal Position)"/>
</group>
<group string="Fulfilment">
<field name="x_fc_default_delivery_method"/>
<field name="x_fc_default_internal_deadline_days"/>
<field name="x_fc_default_customer_deadline_days"/>
</group>
</group>
</page>
<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>