account_journal.xml 915 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_account_journal_form" model="ir.ui.view">
  5. <field name="name">account.journal.form</field>
  6. <field name="model">account.journal</field>
  7. <field name="inherit_id" ref="account.view_account_journal_form"/>
  8. <field name="arch" type="xml">
  9. <field name="company_id" position="after">
  10. <field name="number" attrs=" {'required':[('type','=','sale')],'invisible': [('type','!=','sale')]}"/>
  11. <field name="start_of_validity" attrs=" {'required':[('type','=','sale')],'invisible': [('type','!=','sale')]}"/>
  12. <field name="end_of_validity" attrs=" {'required':[('type','=','sale')],'invisible': [('type','!=','sale')]}"/>
  13. </field>
  14. </field>
  15. </record>
  16. </data>
  17. </openerp>