account_move_view.xml 774 B

123456789101112131415161718
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="account_move_form_l10n_cn" model="ir.ui.view">
  5. <field name="name">l10n_cn.account.move.form</field>
  6. <field name="model">account.move</field>
  7. <field name="inherit_id" ref="account.view_move_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='ref']" position="after">
  10. <field name="move_type" invisible='1'/>
  11. <field name="fapiao" attrs="{'invisible': ['|', ('country_code','!=', 'CN'),
  12. ('move_type', 'not in', ['out_invoice', 'out_refund', 'in_invoice', 'in_refund'])]}"/>
  13. </xpath>
  14. </field>
  15. </record>
  16. </data>
  17. </odoo>