You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_report_pos_order_payment_pivot" model="ir.ui.view">
  4. <field name="model">report.pos.order.payment</field>
  5. <field name="arch" type="xml">
  6. <pivot string="Point of Sale Payment Analysis" disable_linking="True">
  7. <field name="config_id" type="row"/>
  8. <field name="payment_journal_id" type="col"/>
  9. <field name="payment_amount" type="measure"/>
  10. </pivot>
  11. </field>
  12. </record>
  13. <record id="view_report_pos_order_payment_graph" model="ir.ui.view">
  14. <field name="model">report.pos.order.payment</field>
  15. <field name="arch" type="xml">
  16. <graph string="Point of Sale Payment Analysis">
  17. <field name="payment_journal_id" type="row"/>
  18. <field name="payment_amount" type="measure"/>
  19. </graph>
  20. </field>
  21. </record>
  22. <record id="view_report_pos_order_payment_search" model="ir.ui.view">
  23. <field name="model">report.pos.order.payment</field>
  24. <field name="arch" type="xml">
  25. <search string="Point of Sale Payment Analysis">
  26. <field name="date"/>
  27. <filter string="My Sales" name="my_sales" help="My Sales" domain="[('user_id', '=', uid)]"/>
  28. <separator/>
  29. <filter string="Invoiced" name="invoiced" domain="[('state', '=', 'invoiced')]"/>
  30. <filter string="Not Invoiced" name="not_invoiced" domain="[('state', '=', 'paid')]"/>
  31. <field name="config_id"/>
  32. <field name="partner_id"/>
  33. <field name="user_id"/>
  34. <field name="product_id"/>
  35. <field name="product_categ_id"/>
  36. <group expand="1" string="Group By">
  37. <filter string="Salesperson" name="User" context="{'group_by': 'user_id'}"/>
  38. <filter string="Point of Sale" name="pos" context="{'group_by': 'config_id'}"/>
  39. <filter string="Product" name="product" context="{'group_by': 'product_id'}"/>
  40. <filter string="Product Category" name="product_category" context="{'group_by': 'product_categ_id'}"/>
  41. <filter string="Payment Journal" name="payment_journal" context="{'group_by': 'payment_journal_id'}"/>
  42. <separator/>
  43. <filter string="Order Date" name="order_month" context="{'group_by': 'date:month'}"/>
  44. </group>
  45. </search>
  46. </field>
  47. </record>
  48. <record id="action_report_pos_order_payment" model="ir.actions.act_window">
  49. <field name="name">Order Payments Analysis</field>
  50. <field name="res_model">report.pos.order.payment</field>
  51. <field name="view_type">form</field>
  52. <field name="view_mode">graph,pivot</field>
  53. <field name="context">{'group_by_no_leaf': 1, 'group_by': []}</field>
  54. </record>
  55. <menuitem
  56. id="menu_report_pos_order_payment"
  57. name="Order Payments"
  58. action="action_report_pos_order_payment"
  59. parent="point_of_sale.menu_point_rep"
  60. sequence="3"/>
  61. </odoo>