1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="account_invoice_cobrador" model="ir.ui.view">
- <field name="name">account.invoice.cobrador</field>
- <field name="model">account.invoice</field>
- <field name="inherit_id" ref="account.invoice_form" />
- <field name="arch" type="xml">
- <field name="account_id" position="after">
- <field name="employee_id"/>
- <field name="factconcobrador"/>
- <field name="promesa_date"/>
- </field>
- </field>
- </record>
- <record id="view_accountinvoices_filter_search1" model="ir.ui.view">
- <field name="name">accountinvoices.filter.search1</field>
- <field name="model">account.invoice</field>
- <field name="inherit_id" ref="account.view_account_invoice_filter" />
- <field name="arch" type="xml">
- <search>
- <filter string="Promesa esta semana" domain="[('promesa_date', '>=', ((context_today()+relativedelta(weeks=-1, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('promesa_date', '<=', ((context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
- <filter string="Promesa hoy" domain="[('promesa_date', '>=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('promesa_date', '<=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
- <filter string="Promesa ayer" domain="[('promesa_date','<=', (datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d')),('promesa_date','>=',(datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
- <separator/>
- <group string="Agrupar por">
- <filter string="Por dia vencimiento" context="{'group_by':'date_due:day'}"/>
- <filter string="Por dia promesa" context="{'group_by':'promesa_date:day'}"/>
- <filter string="Por mes promesa" context="{'group_by':'promesa_date:month'}"/>
- </group>
- </search>
- </field>
- </record>
- </data>
- </openerp>
|