You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
929 B
19 lines
929 B
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inherited sale_order to add a barcode button in this model and on click of the button a js function is executed-->
|
|
<record id="view_order_form" model="ir.ui.view">
|
|
<field name="name">sale.order.view.form.inherit.barcode.capturing.sale.purchase</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form" position="attributes">
|
|
<attribute name="js_class">sale_order_barcode</attribute>
|
|
</xpath>
|
|
<xpath expr="//sheet" position="inside">
|
|
<a href="#" t-on-click="SaleBarcodeDialog" data-hotkey="x">
|
|
<i class="fa fa-barcode" style="font-size:32px;color:black"/> <b>SCAN BARCODE</b>
|
|
</a>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|