22 lines
1.3 KiB
XML
22 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Extend product template form view to add sequence fields on Inventory tab -->
|
|
<record id="view_product_template_form_inherit_stock" model="ir.ui.view">
|
|
<field name="name">product.template.form.inherit.stock.lot.sequence</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="stock.view_template_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='inventory']" position="inside">
|
|
<group string="Traceability" name="traceability" groups="stock.group_production_lot" invisible="tracking == 'none'">
|
|
<label for="serial_prefix_format" string="Custom Lot/Serial" invisible="tracking == 'none'"/>
|
|
<div class="d-flex" invisible="tracking == 'none'">
|
|
<field name="serial_prefix_format" style="max-width: 150px;"/>
|
|
<field name="next_serial" style="max-width: 150px;"/>
|
|
</div>
|
|
<!-- Optionally show the technical sequence field -->
|
|
<field name="lot_sequence_id" groups="base.group_no_one"/>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo> |