folder rename
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
<?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>
|
||||
|
||||
<!--
|
||||
Extend the Fusion Plating NCR form to surface the mirrored EE
|
||||
quality.alert record. Adds:
|
||||
* A header "Sync to Quality" button
|
||||
* A smart button jumping to the mirrored alert
|
||||
* A "Quality Alert Sync" notebook page with the raw sync fields
|
||||
-->
|
||||
<record id="view_fp_ncr_form_bridge_quality" model="ir.ui.view">
|
||||
<field name="name">fp.ncr.form.bridge.quality</field>
|
||||
<field name="model">fusion.plating.ncr</field>
|
||||
<field name="inherit_id" ref="fusion_plating_quality.view_fp_ncr_form"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<!-- Header: manual sync button -->
|
||||
<xpath expr="//header" position="inside">
|
||||
<button name="action_sync_to_quality"
|
||||
string="Sync to Quality"
|
||||
type="object"
|
||||
class="btn-secondary"
|
||||
invisible="not x_fc_auto_sync"
|
||||
help="Push this NCR's latest values into the mirrored Odoo EE quality.alert record."/>
|
||||
</xpath>
|
||||
|
||||
<!-- Smart button: jump to mirrored alert -->
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<button name="action_view_quality_alert"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-bell"
|
||||
invisible="not x_fc_quality_alert_id">
|
||||
<div class="o_stat_info">
|
||||
<span class="o_stat_text">Quality</span>
|
||||
<span class="o_stat_text">Alert</span>
|
||||
</div>
|
||||
</button>
|
||||
</xpath>
|
||||
|
||||
<!-- Notebook page: raw sync fields -->
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Quality Alert Sync" name="quality_alert_sync">
|
||||
<group>
|
||||
<group string="Sync Status">
|
||||
<field name="x_fc_auto_sync"/>
|
||||
<field name="x_fc_quality_alert_synced" readonly="1"/>
|
||||
<field name="x_fc_quality_alert_id" readonly="1"/>
|
||||
</group>
|
||||
<group string="About">
|
||||
<div colspan="2" class="text-muted">
|
||||
<p>
|
||||
This NCR is mirrored into the Odoo Enterprise
|
||||
<strong>Quality</strong> module so EE users can monitor it
|
||||
from the native quality dashboards.
|
||||
</p>
|
||||
<p>
|
||||
The sync is <strong>one-way</strong>: Fusion Plating is the
|
||||
source of truth. Edits made directly to the mirrored
|
||||
<em>quality.alert</em> record will be overwritten the next
|
||||
time this NCR changes.
|
||||
</p>
|
||||
<p>
|
||||
Turn off <strong>Auto-sync to Quality</strong> on an individual
|
||||
NCR to freeze its mirror, or use the
|
||||
<strong>Sync to Quality</strong> header button to push changes
|
||||
on demand.
|
||||
</p>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user