account_search_ruc_view.xml 1.0 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="account_invoice_ruc">
  5. <field name="name">account.invoice.ruc</field>
  6. <field name="model">account.invoice</field>
  7. <field name="inherit_id" ref="account.invoice_tree" />
  8. <field name="arch" type="xml">
  9. <field name="partner_id" position="before">
  10. <field name="partner_ruc"/>
  11. </field>
  12. </field>
  13. </record>
  14. <record model="ir.ui.view" id="account_invoice_search_ruc">
  15. <field name="name">account.invoice.search.ruc</field>
  16. <field name="model">account.invoice</field>
  17. <field name="inherit_id" ref="account.view_account_invoice_filter" />
  18. <field name="arch" type="xml">
  19. <field name="number" position="after">
  20. <field name="partner_ruc" filter_domain="[('partner_ruc','ilike',self)]"/>
  21. </field>
  22. </field>
  23. </record>
  24. </data>
  25. </openerp>