Debian Codegraph @

addons/l10n_in_ewaybill/views/account_move_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="invoice_form_inherit_l10n_in_ewaybill" model="ir.ui.view">
4 <field name="name">account.move.form.inherit.l10n.in.ewaybill</field>
5 <field name="model">account.move</field>
6 <field name="inherit_id" ref="account.view_move_form"/>
7 <field name="arch" type="xml">
8 <xpath expr="//button[@name='button_request_cancel']" position="after">
9 <button name="action_l10n_in_ewaybill_create"
10 string="Create e-Waybill"
11 class="oe_highlight"
12 type="object"
13 invisible="
14 country_code != 'IN'
15 or not l10n_in_ewaybill_feature_enabled
16 or state != 'posted'
17 or l10n_in_ewaybill_ids
18 or move_type in ('entry', 'out_refund')"
19 groups="account.group_account_invoice"
20 data-hotkey="e"/>
21 </xpath>
22 <xpath expr="//sheet/div[hasclass('oe_button_box')]" position="inside">
23 <button name="action_open_l10n_in_ewaybill"
24 class="oe_stat_button"
25 icon="fa-truck"
26 type="object"
27 invisible="country_code != 'IN' or not l10n_in_ewaybill_ids or move_type in ('entry', 'out_refund')"
28 groups="account.group_account_invoice">
29 <div class="o_stat_info">
30 <span class="o_stat_text">e-Waybill</span>
31 </div>
32 </button>
33 </xpath>
34 </field>
35 </record>
36
37 <record id="view_invoice_list_inherit_l10n_in_ewaybill" model="ir.ui.view">
38 <field name="name">account.move.list.inherit.l10n.in.ewaybill</field>
39 <field name="model">account.move</field>
40 <field name="inherit_id" ref="account.view_invoice_tree"/>
41 <field name="arch" type="xml">
42 <xpath expr="//field[@name='move_sent_values']" position="after">
43 <field name="l10n_in_ewaybill_name" optional="hide"/>
44 </xpath>
45 </field>
46 </record>
47 </odoo>