Files
Odoo-Modules/fusion-plating/fusion_plating_bridge_documents/views/fp_capa_views.xml
gsinghpal be611876ad changes
2026-04-12 09:09:50 -04:00

31 lines
1.2 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.
The upstream fusion_plating_quality CAPA form does not ship with a
button_box. We inject one at the top of the <sheet> so our stat button
has somewhere to live. Adding via the sheet xpath keeps the core form
untouched.
-->
<odoo>
<record id="view_fp_capa_form_bridge_documents" model="ir.ui.view">
<field name="name">fp.capa.form.bridge.documents</field>
<field name="model">fusion.plating.capa</field>
<field name="inherit_id" ref="fusion_plating_quality.view_fp_capa_form"/>
<field name="arch" type="xml">
<xpath expr="//sheet/div[hasclass('oe_title')]" position="before">
<div class="oe_button_box" name="button_box">
<button name="action_view_documents" type="object"
class="oe_stat_button" icon="fa-folder-open">
<field name="x_fc_document_count" widget="statinfo" string="Documents"/>
</button>
</div>
</xpath>
</field>
</record>
</odoo>