Search code examples
odooodoo-10odoo-9odoo-11odoo-12

How to group by based on month in odoo 11?


How to group by based on month in odoo 11?

<filter string="PO Date" icon="terp-gtk-select-all" domain="[]" context="{'group_by':'order_date'}"/>

<filter string="PO Date"  domain="[]" context="{'group_by':'order_date'}"/>

tried using both the above syntax but not working


Solution

  • You can do like this in Purchase Order Group by based on Month.

    <group expand="0" string="Group By">
        <filter string="Order Date" domain="[]" context="{'group_by':'date_order'}"/>
    </group>