31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_picking_form_inherit_ewaybill" model="ir.ui.view">
|
|
<field name="name">view.picking.form.inherit.ewaybill</field>
|
|
<field name="model">stock.picking</field>
|
|
<field name="inherit_id" ref="stock.view_picking_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header/field[@name='state']" position="before">
|
|
<button string="Create e-Waybill / Challan"
|
|
type="object"
|
|
name="action_l10n_in_ewaybill_create"
|
|
invisible="country_code != 'IN' or l10n_in_ewaybill_id or state != 'done'"
|
|
data-hotkey="e"
|
|
groups="stock.group_stock_manager"/>
|
|
</xpath>
|
|
<xpath expr="//sheet/div[hasclass('oe_button_box')]" position="inside">
|
|
<button name="action_open_l10n_in_ewaybill"
|
|
class="oe_stat_button"
|
|
icon="fa-truck"
|
|
type="object"
|
|
invisible="not l10n_in_ewaybill_id"
|
|
groups="stock.group_stock_manager">
|
|
<div class="o_stat_info">
|
|
<span class="o_stat_text">e-Waybill / Challan</span>
|
|
</div>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|