folder rename

This commit is contained in:
gsinghpal
2026-04-16 20:53:53 -04:00
parent 3f3ddcbab4
commit 7c7ef06057
634 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
<?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>
<!-- ===== Strategy Default List View ===== -->
<record id="view_fp_invoice_strategy_default_list" model="ir.ui.view">
<field name="name">fp.invoice.strategy.default.list</field>
<field name="model">fp.invoice.strategy.default</field>
<field name="arch" type="xml">
<list string="Invoice Strategy Defaults">
<field name="partner_id"/>
<field name="default_strategy"/>
<field name="default_deposit_percent"/>
<field name="payment_term_id"/>
</list>
</field>
</record>
<!-- ===== Strategy Default Form View ===== -->
<record id="view_fp_invoice_strategy_default_form" model="ir.ui.view">
<field name="name">fp.invoice.strategy.default.form</field>
<field name="model">fp.invoice.strategy.default</field>
<field name="arch" type="xml">
<form string="Invoice Strategy Default">
<sheet>
<group>
<group>
<field name="partner_id"/>
<field name="default_strategy"/>
<field name="default_deposit_percent"
invisible="default_strategy != 'deposit'"/>
</group>
<group>
<field name="payment_term_id"/>
</group>
</group>
<group>
<field name="notes" placeholder="Internal notes about this customer's billing preferences..."/>
</group>
</sheet>
</form>
</field>
</record>
<!-- ===== Strategy Default Search View ===== -->
<record id="view_fp_invoice_strategy_default_search" model="ir.ui.view">
<field name="name">fp.invoice.strategy.default.search</field>
<field name="model">fp.invoice.strategy.default</field>
<field name="arch" type="xml">
<search>
<field name="partner_id"/>
<separator/>
<filter string="Deposit" name="deposit" domain="[('default_strategy','=','deposit')]"/>
<filter string="Progress Billing" name="progress" domain="[('default_strategy','=','progress')]"/>
<filter string="Net Terms" name="net_terms" domain="[('default_strategy','=','net_terms')]"/>
<filter string="COD / Prepay" name="cod_prepay" domain="[('default_strategy','=','cod_prepay')]"/>
<group>
<filter string="Strategy" name="group_strategy" context="{'group_by':'default_strategy'}"/>
</group>
</search>
</field>
</record>
<!-- ===== Window Action ===== -->
<record id="action_fp_invoice_strategy_default" model="ir.actions.act_window">
<field name="name">Invoice Strategy Defaults</field>
<field name="res_model">fp.invoice.strategy.default</field>
<field name="view_mode">list,form</field>
<field name="search_view_id" ref="view_fp_invoice_strategy_default_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No invoice strategy defaults defined yet
</p>
<p>
Set a default invoice strategy per customer so new sale orders
auto-fill with the correct billing method.
</p>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,37 @@
<?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>
<!-- ===== Window actions (BEFORE menus) ===== -->
<record id="action_fp_account_holds" model="ir.actions.act_window">
<field name="name">Account Holds</field>
<field name="res_model">res.partner</field>
<field name="view_mode">list,form</field>
<field name="domain">[('x_fc_account_hold', '=', True)]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No customers on account hold
</p>
</field>
</record>
<!-- ===== Menu items under Configuration ===== -->
<menuitem id="menu_fp_invoice_strategy"
name="Invoice Strategy Defaults"
parent="fusion_plating.menu_fp_config"
action="action_fp_invoice_strategy_default"
sequence="60"
groups="group_fp_accounting"/>
<menuitem id="menu_fp_account_holds"
name="Account Holds"
parent="fusion_plating.menu_fp_config"
action="action_fp_account_holds"
sequence="70"
groups="group_fp_accounting"/>
</odoo>

View File

@@ -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>

View File

@@ -0,0 +1,25 @@
<?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>
<!-- ===== 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>