|
@@ -9,7 +9,7 @@
|
|
|
<field name="arch" type="xml">
|
|
|
<search>
|
|
|
|
|
|
-
|
|
|
+ <field name="bank_payments_type_id"/>
|
|
|
<filter string="Este año" name="year" domain="[('date','<=', time.strftime('%%Y-12-31')),('date','>=',time.strftime('%%Y-01-01'))]"/>
|
|
|
<filter string="Año pasado " domain="[('date','>=',(context_today()-relativedelta(years=1)).strftime('%%Y-01-01')),('date','<=', time.strftime('%%Y-01-01'))]"/>
|
|
|
<filter string="Mes actual" domain="[('date','<',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), ('date','>=',time.strftime('%%Y-%%m-01'))]"/>
|
|
@@ -22,6 +22,7 @@
|
|
|
|
|
|
<separator/>
|
|
|
<group string="Agrupar por">
|
|
|
+ <filter string="Por dia" context="{'group_by':'bank_payments_type_id'}"/>
|
|
|
<filter string="Por dia" context="{'group_by':'date:day'}"/>
|
|
|
<filter string="Por mes" context="{'group_by':'date:month'}"/>
|
|
|
</group>
|