Debian Codegraph @

addons/l10n_hu_edi/views/account_move_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_invoice_tree_inherit_l10n_hu_edi" model="ir.ui.view">
4 <field name="name">account.invoice.list.inherit.l10n_hu_edi</field>
5 <field name="model">account.move</field>
6 <field name="inherit_id" ref="account.view_invoice_tree"/>
7 <field name="arch" type="xml">
8 <xpath expr="//list" position="inside">
9 <field name="l10n_hu_edi_state" optional="hide"/>
10 </xpath>
11 </field>
12 </record>
13
14 <record id="view_move_form_inherit_l10n_hu_edi" model="ir.ui.view">
15 <field name="name">account.move.form.inherit.l10n_hu_edi</field>
16 <field name="model">account.move</field>
17 <field name="inherit_id" ref="account.view_move_form"/>
18 <field name="arch" type="xml">
19 <xpath expr="//header" position="inside">
20 <button string="Update Status"
21 name="l10n_hu_edi_button_update_status"
22 type="object"
23 groups="account.group_account_invoice"
24 invisible="not l10n_hu_edi_state"/>
25 </xpath>
26
27 <xpath expr="//sheet" position="before">
28 <div class="alert alert-warning mb-0" role="alert"
29 invisible="not l10n_hu_edi_messages or not l10n_hu_edi_messages.get('blocking_level') or l10n_hu_edi_messages.get('hide_banner')">
30 <field name="l10n_hu_edi_messages" invisible="1"/>
31 <field name="l10n_hu_edi_message_html" readonly="1"/>
32 <button name="l10n_hu_edi_button_hide_banner"
33 type="object"
34 class="btn btn-link p-0"
35 string="Hide this message"/>
36 </div>
37 </xpath>
38
39 <xpath expr="//label[@for='journal_id']" position="before">
40 <field name="l10n_hu_payment_mode" invisible="country_code != 'HU'" readonly="state != 'draft'"/>
41 </xpath>
42
43 <!-- Documents tab -->
44 <xpath expr="//page[@id='other_tab_entry']" position="after">
45 <page id="l10n_hu_edi"
46 string="NAV 3.0"
47 invisible="not l10n_hu_edi_state">
48 <group>
49 <group>
50 <field name="l10n_hu_edi_state" readonly="1"/>
51 <field name="l10n_hu_invoice_chain_index" readonly="1"/>
52 </group>
53 <group>
54 <field name="l10n_hu_edi_send_time" readonly="1"/>
55 <field name="l10n_hu_edi_transaction_code" readonly="l10n_hu_edi_state == 'rejected'"/>
56 </group>
57 </group>
58 <group>
59 <field name="l10n_hu_edi_message_html" readonly="1"/>
60 <field name="l10n_hu_edi_attachment" widget="binary" filename="l10n_hu_edi_attachment_filename" readonly="1"/>
61 <field name="l10n_hu_edi_attachment_filename" invisible="1"/>
62 </group>
63 </page>
64 </xpath>
65 </field>
66 </record>
67 </odoo>