1234567891011121314151617181920 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="view_account_journal_form_inherit_l10n_in" model="ir.ui.view">
- <field name="name">account.journal.form.inherit.l10n.in</field>
- <field name="model">account.journal</field>
- <field name="inherit_id" ref="account.view_account_journal_form"/>
- <field name="arch" type="xml">
- <field name='profit_account_id' position="attributes">
- <attribute name="attrs">{'invisible': ['|', '&', ('country_code', '!=', 'IN'), ('type', '!=', 'cash'), '&', ('country_code', '=', 'IN'), ('type', 'not in', ['bank', 'cash', 'sale', 'purchase'])]}</attribute>
- </field>
- <field name='loss_account_id' position="attributes">
- <attribute name="attrs">{'invisible': ['|', '&', ('country_code', '!=', 'IN'), ('type', '!=', 'cash'), '&', ('country_code', '=', 'IN'), ('type', 'not in', ['bank', 'cash', 'sale', 'purchase'])]}</attribute>
- </field>
- <field name="company_id" position="after">
- <field name="l10n_in_gstin_partner_id" context="{'show_vat':True}" options='{"no_create": True,"always_reload": True}' attrs="{'invisible': [('country_code', '!=', 'IN')]}"/>
- </field>
- </field>
- </record>
- </odoo>
|