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:
@@ -3,7 +3,7 @@
|
|||||||
# License OPL-1 (Odoo Proprietary License v1.0)
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
||||||
{
|
{
|
||||||
'name': 'Fusion Plating — Native Jobs',
|
'name': 'Fusion Plating — Native Jobs',
|
||||||
'version': '19.0.8.22.5',
|
'version': '19.0.8.22.6',
|
||||||
'category': 'Manufacturing/Plating',
|
'category': 'Manufacturing/Plating',
|
||||||
'summary': 'Native plating job model — replaces mrp.production / mrp.workorder bridge.',
|
'summary': 'Native plating job model — replaces mrp.production / mrp.workorder bridge.',
|
||||||
'author': 'Nexa Systems Inc.',
|
'author': 'Nexa Systems Inc.',
|
||||||
|
|||||||
@@ -32,6 +32,25 @@
|
|||||||
string="Certificates"/>
|
string="Certificates"/>
|
||||||
</button>
|
</button>
|
||||||
</xpath>
|
</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>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user