Debian Codegraph @

addons/l10n_in/views/account_journal_views.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_account_journal_form_inherit_l10n_in" model="ir.ui.view">
4 <field name="name">account.journal.form.inherit.l10n.in</field>
5 <field name="model">account.journal</field>
6 <field name="inherit_id" ref="account.view_account_journal_form"/>
7 <field name="arch" type="xml">
8 <field name="profit_account_id" position="attributes">
9 <attribute name="invisible">country_code != 'IN' and type != 'cash' or country_code == 'IN' and type not in ['bank', 'cash', 'sale', 'purchase']</attribute>
10 </field>
11 <field name="loss_account_id" position="attributes">
12 <attribute name="invisible">country_code != 'IN' and type != 'cash' or country_code == 'IN' and type not in ['bank', 'cash', 'sale', 'purchase']</attribute>
13 </field>
14 </field>
15 </record>
16 </odoo>