account_journal_views.xml 1.3 KB

1234567891011121314151617181920
  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="attrs">{'invisible': ['|', '&amp;', ('country_code', '!=', 'IN'), ('type', '!=', 'cash'), '&amp;', ('country_code', '=', 'IN'), ('type', 'not in', ['bank', 'cash', 'sale', 'purchase'])]}</attribute>
  10. </field>
  11. <field name='loss_account_id' position="attributes">
  12. <attribute name="attrs">{'invisible': ['|', '&amp;', ('country_code', '!=', 'IN'), ('type', '!=', 'cash'), '&amp;', ('country_code', '=', 'IN'), ('type', 'not in', ['bank', 'cash', 'sale', 'purchase'])]}</attribute>
  13. </field>
  14. <field name="company_id" position="after">
  15. <field name="l10n_in_gstin_partner_id" context="{'show_vat':True}" options='{"no_create": True,"always_reload": True}' attrs="{'invisible': [('country_code', '!=', 'IN')]}"/>
  16. </field>
  17. </field>
  18. </record>
  19. </odoo>