account_invoice_line.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="product_account_invoice_line_tree" model="ir.ui.view">
  5. <field name="model">account.invoice.line</field>
  6. <field name="arch" type="xml">
  7. <tree string="Invoice line" create="false">
  8. <field name="invoice_id"/>
  9. <field name="inv_date"/>
  10. <field name="partner_id"/>
  11. <field name="product_id"/>
  12. <field name="name"/>
  13. <field name="quantity"/>
  14. <field name="uos_id" groups="product.group_uom"/>
  15. <field name="price_unit"/>
  16. <field name="price_subtotal"/>
  17. <field name="inv_state"/>
  18. </tree>
  19. </field>
  20. </record>
  21. <record id="product_account_invoice_line_search" model="ir.ui.view">
  22. <field name="model">account.invoice.line</field>
  23. <field name="arch" type="xml">
  24. <search string="Invoice line">
  25. <field name="product_id"/>
  26. <field name="name"/>
  27. <field name="inv_date"/>
  28. <filter name="inv_draft" string="Draft" domain="[('inv_state','=', 'draft')]"/>
  29. <filter name="inv_open" string="Open" domain="[('inv_state','=', 'open')]"/>
  30. <filter name="inv_paid" string="Paid" domain="[('inv_state','=', 'paid')]"/>
  31. <newline />
  32. <group expand="0" string="Group By...">
  33. <filter string="Invoice State" domain="[]" context="{'group_by':'inv_state'}"/>
  34. <filter string="Partner" domain="[]" context="{'group_by':'partner_id'}"/>
  35. <filter string="Invoice Date" domain="[]" context="{'group_by':'inv_date'}"/>
  36. </group>
  37. </search>
  38. </field>
  39. </record>
  40. </data>
  41. </openerp>