|
@@ -0,0 +1,36 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <record id="view_account_voucherfilter_search1" model="ir.ui.view">
|
|
|
+ <field name="name">account.voucher.filter.search1</field>
|
|
|
+ <field name="model">account.voucher</field>
|
|
|
+ <field name="inherit_id" ref="account_voucher.view_voucher_filter_customer_pay"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <search>
|
|
|
+ <separator/>
|
|
|
+ <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'))]"/>
|
|
|
+ <filter string="Mes pasado" domain="[('date','>=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),('date','<',time.strftime('%%Y-%%m-01'))]"/>
|
|
|
+ <filter string="Semana anterior" domain="[('date', '>=', ((context_today()+relativedelta(weeks=-2, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('date', '<=', ((context_today()+relativedelta(weeks=-1, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
|
|
|
+ <filter string="Esta semana" domain="[('date', '>=', ((context_today()+relativedelta(weeks=-1, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('date', '<=', ((context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
|
|
|
+ <filter string="Hoy" domain="[('date', '>=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('date', '<=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
|
|
|
+ <filter string=" Ayer " domain="[('date','<=', (datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
|
|
|
+ <filter string="Guarani" name="payment_rate_currency_id" domain="[('payment_rate_currency_id','=','PYG')]"/>
|
|
|
+ <filter string="Dolar" name="payment_rate_currency_id" domain="[('payment_rate_currency_id','=','USD')]"/>
|
|
|
+ <filter string="Real" name="payment_rate_currency_id" domain="[('payment_rate_currency_id','=','BRL')]"/>
|
|
|
+ <filter string="Peso" name="payment_rate_currency_id" domain="[('payment_rate_currency_id','=','ARS')]"/>
|
|
|
+ <separator/>
|
|
|
+ <group string="Agrupar por">
|
|
|
+ <filter string="Journal" context="{'group_by':'journal_id'}"/>
|
|
|
+ <filter string="Por dia" context="{'group_by':'date:day'}"/>
|
|
|
+ <filter string="Por Mes" context="{'group_by':'date:month'}"/>
|
|
|
+ </group>
|
|
|
+ </search>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+
|
|
|
+ </data>
|
|
|
+</openerp>
|