Debian Codegraph @

addons/l10n_bg_ledger/views/account_move_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="l10n_bg_move_view_form" model="ir.ui.view">
4 <field name="name">l10n_bg.move.view.form</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="//group[@name='sale_info_group']" position="after">
9 <group string="Bulgaria VAT Document" name="l10n_bg_documents" invisible="country_code != 'BG'">
10 <field string="Document Type" name="l10n_bg_document_type"/>
11 <field string="Document Number" name="l10n_bg_document_number"/>
12 <field string="Exemption reason" name="l10n_bg_exemption_reason"/>
13 </group>
14 </xpath>
15 </field>
16 </record>
17
18 <record id="l10n_bg_move_view_tree" model="ir.ui.view">
19 <field name="name">l10n_bg.move.view.tree</field>
20 <field name="model">account.move</field>
21 <field name="inherit_id" ref="account.view_invoice_tree"/>
22 <field name="arch" type="xml">
23 <xpath expr="//field[@name='name']" position="after">
24 <field string="Document Number" name="l10n_bg_document_number" optional="show"/>
25 <field string="Document Type" name="l10n_bg_document_type" optional="show"/>
26 </xpath>
27 </field>
28 </record>
29
30 <record id="l10n_bg_move_view_filter" model="ir.ui.view">
31 <field name="name">l10n_bg.move.view.filter</field>
32 <field name="model">account.move</field>
33 <field name="inherit_id" ref="account.view_account_invoice_filter"/>
34 <field name="arch" type="xml">
35 <xpath expr="//filter[@name='group_by_company']" position="after">
36 <filter string="Document Type" name="l10n_bg_document_type_groupby" context="{'group_by': 'l10n_bg_document_type'}"/>
37 </xpath>
38 </field>
39 </record>
40 </odoo>