account_journal_view.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="view_account_journal_form" model="ir.ui.view">
  5. <field name="model">account.journal</field>
  6. <field name="name">account.journal.form</field>
  7. <field name="inherit_id" ref="l10n_latam_invoice_document.view_account_journal_form"/>
  8. <field name="arch" type="xml">
  9. <field name="l10n_latam_use_documents" position="after">
  10. <field name="l10n_ec_require_emission" invisible="1"/>
  11. <field name="l10n_ec_entity"
  12. placeholder="001"
  13. attrs="{'invisible':[('l10n_ec_require_emission', '!=', True)],
  14. 'required':[('l10n_ec_require_emission', '=', True)]}"
  15. />
  16. <field name="l10n_ec_emission"
  17. placeholder="001"
  18. attrs="{'invisible':[('l10n_ec_require_emission', '!=', True)],
  19. 'required':[('l10n_ec_require_emission', '=', True)]}"
  20. />
  21. <field name="l10n_ec_emission_address_id"
  22. attrs="{'invisible':[('l10n_ec_require_emission', '!=', True)],
  23. 'required':[('l10n_ec_require_emission', '=', True)]}"
  24. context="{'default_parent_id': company_partner_id,
  25. 'default_type': 'invoice',
  26. 'form_view_ref': 'base.view_partner_address_form'
  27. }"
  28. />
  29. </field>
  30. </field>
  31. </record>
  32. </data>
  33. </odoo>