feat(numbering): surface quote ref under SO name on the form

A small grey 'Originally quoted as Q202605-200' line appears below
the SO heading once the order is confirmed. Uses invisible= on the
wrapper div (Odoo 19 forbids t-if in standard form views).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-12 14:32:22 -04:00
parent 78d633f63f
commit be109c9c79
2 changed files with 20 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
# License OPL-1 (Odoo Proprietary License v1.0)
{
'name': 'Fusion Plating — Native Jobs',
'version': '19.0.8.22.5',
'version': '19.0.8.22.6',
'category': 'Manufacturing/Plating',
'summary': 'Native plating job model — replaces mrp.production / mrp.workorder bridge.',
'author': 'Nexa Systems Inc.',

View File

@@ -32,6 +32,25 @@
string="Certificates"/>
</button>
</xpath>
<!-- Quote ref: small grey "Originally quoted as Q202605-200"
line under the SO name (the big SO-30000 heading). Only
renders once the SO has been confirmed (quote_ref is set
on create, parent_number is set on confirm — both
needed for the line to make sense).
NB: Odoo 19 forbids t-if in standard form views — using
`invisible` attribute on the wrapper div instead. -->
<xpath expr="//div[hasclass('oe_title')]" position="inside">
<field name="x_fc_parent_number" invisible="1"/>
<div class="text-muted"
style="font-size: 0.9em; margin-top: 4px;"
invisible="not x_fc_quote_ref or not x_fc_parent_number">
Originally quoted as
<field name="x_fc_quote_ref"
readonly="1" nolabel="1"
class="d-inline"/>
</div>
</xpath>
</field>
</record>