Files
enterprise-addons/stock_barcode/views/stock_location_views.xml
T

22 lines
1.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_location_form_inherit" model="ir.ui.view">
<field name="name">stock.location.form.inherit</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='replenish_location']" position="before">
<field name="barcode"/>
</xpath>
<xpath expr="//div[hasclass('oe_location_header')]" position="attributes">
<attribute name="class" add="d-flex justify-content-between" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('oe_location_header')]" position="inside">
<div class="position-relative m-2 p-2 pt-4 border border-2 border-dark" style='background-color: white' invisible="not barcode_img">
<field name="barcode_img" widget="image"/>
</div>
</xpath>
</field>
</record>
</odoo>