purchase_bill_views.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_purchase_bill_union_filter" model="ir.ui.view">
  4. <field name="name">purchase.bill.union.select</field>
  5. <field name="model">purchase.bill.union</field>
  6. <field name="arch" type="xml">
  7. <search string="Search Reference Document">
  8. <field name="name" string="Reference" filter_domain="['|', ('name','ilike',self), ('reference','=like',self+'%')]"/>
  9. <field name="amount"/>
  10. <separator/>
  11. <field name="partner_id" operator="child_of"/>
  12. <separator/>
  13. <filter name="purchase_orders" string="Purchase Orders" domain="[('purchase_order_id', '!=', False)]"/>
  14. <filter name="vendor_bills" string="Vendor Bills" domain="[('vendor_bill_id', '!=', False)]"/>
  15. </search>
  16. </field>
  17. </record>
  18. <record id="view_purchase_bill_union_tree" model="ir.ui.view">
  19. <field name="name">purchase.bill.union.tree</field>
  20. <field name="model">purchase.bill.union</field>
  21. <field name="arch" type="xml">
  22. <tree string="Reference Document">
  23. <field name="name"/>
  24. <field name="reference"/>
  25. <field name="partner_id"/>
  26. <field name="date"/>
  27. <field name="amount"/>
  28. <field name="currency_id" invisible="1"/>
  29. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  30. </tree>
  31. </field>
  32. </record>
  33. </odoo>