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

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_report_pos_order_payment_pivot" model="ir.ui.view">
<field name="model">report.pos.order.payment</field>
<field name="arch" type="xml">
<pivot string="Point of Sale Payment Analysis" disable_linking="True">
<field name="config_id" type="row"/>
<field name="payment_journal_id" type="col"/>
<field name="payment_amount" type="measure"/>
</pivot>
</field>
</record>
<record id="view_report_pos_order_payment_graph" model="ir.ui.view">
<field name="model">report.pos.order.payment</field>
<field name="arch" type="xml">
<graph string="Point of Sale Payment Analysis">
<field name="payment_journal_id" type="row"/>
<field name="payment_amount" type="measure"/>
</graph>
</field>
</record>
<record id="view_report_pos_order_payment_search" model="ir.ui.view">
<field name="model">report.pos.order.payment</field>
<field name="arch" type="xml">
<search string="Point of Sale Payment Analysis">
<field name="date"/>
<filter string="My Sales" name="my_sales" help="My Sales" domain="[('user_id', '=', uid)]"/>
<separator/>
<filter string="Invoiced" name="invoiced" domain="[('state', '=', 'invoiced')]"/>
<filter string="Not Invoiced" name="not_invoiced" domain="[('state', '=', 'paid')]"/>
<field name="config_id"/>
<field name="partner_id"/>
<field name="user_id"/>
<field name="product_id"/>
<field name="product_categ_id"/>
<group expand="1" string="Group By">
<filter string="Salesperson" name="User" context="{'group_by': 'user_id'}"/>
<filter string="Point of Sale" name="pos" context="{'group_by': 'config_id'}"/>
<filter string="Product" name="product" context="{'group_by': 'product_id'}"/>
<filter string="Product Category" name="product_category" context="{'group_by': 'product_categ_id'}"/>
<filter string="Payment Journal" name="payment_journal" context="{'group_by': 'payment_journal_id'}"/>
<separator/>
<filter string="Order Date" name="order_month" context="{'group_by': 'date:month'}"/>
</group>
</search>
</field>
</record>
<record id="action_report_pos_order_payment" model="ir.actions.act_window">
<field name="name">Order Payments Analysis</field>
<field name="res_model">report.pos.order.payment</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot</field>
<field name="context">{'group_by_no_leaf': 1, 'group_by': []}</field>
</record>
<menuitem
id="menu_report_pos_order_payment"
name="Order Payments"
action="action_report_pos_order_payment"
parent="point_of_sale.menu_point_rep"
sequence="3"/>
</odoo>