sale_views.xml 1.2 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_order_form_inherit_l10n_in_sale" model="ir.ui.view">
  4. <field name="name">sale.order.form.inherit.l10n.in.sale</field>
  5. <field name="model">sale.order</field>
  6. <field name="inherit_id" ref="sale.view_order_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='partner_id']" position="after">
  9. <field name="country_code" invisible="1"/>
  10. <field name="l10n_in_reseller_partner_id" groups="l10n_in.group_l10n_in_reseller"
  11. attrs="{'invisible': [('country_code','!=', 'IN')]}"/>
  12. <field name="l10n_in_gst_treatment"
  13. attrs="{'invisible':[('country_code','!=','IN')],'required':[('country_code','=','IN')]}"/>
  14. </xpath>
  15. <xpath expr="//group[@name='sale_info']//field[@name='invoice_status']" position="after">
  16. <field name="l10n_in_journal_id" domain="[('company_id', '=', company_id), ('type','=','sale')]" options="{'no_create': True}" attrs="{'invisible': [('country_code','!=', 'IN')]}"/>
  17. </xpath>
  18. </field>
  19. </record>
  20. </odoo>