[IMP] purchase, sale: added Inbox filter in search views.

bzr revid: tde@openerp.com-20120622101506-fuacc0gbw2lkj6t0
This commit is contained in:
Thibault Delavallée 2012-06-22 12:15:06 +02:00
parent d2f72d8143
commit 3af2deb3db
2 changed files with 10 additions and 0 deletions

View File

@ -258,6 +258,11 @@
<field name="arch" type="xml">
<search string="Search Purchase Order">
<group>
<filter icon="terp-mail-message-new"
string="Inbox" help="Unread messages"
name="needaction_pending"
domain="[('needaction_pending','=',True)]"/>
<separator orientation="vertical"/>
<filter icon="terp-document-new" name="draft" string="Quotations" domain="[('state','=','draft')]" help="Purchase orders which are in draft state"/>
<filter icon="terp-check" name="approved" string="Purchase Orders" domain="[('state','not in',('draft','cancel'))]" help="Approved purchase orders"/>
<separator orientation="vertical"/>

View File

@ -287,6 +287,11 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Sales Order">
<filter icon="terp-mail-message-new"
string="Inbox" help="Unread messages"
name="needaction_pending"
domain="[('needaction_pending','=',True)]"/>
<separator orientation="vertical"/>
<filter icon="terp-document-new" string="Quotations" name="draft" domain="[('state','in',('draft','sent'))]" help="Sales Order that haven't yet been confirmed"/>
<filter icon="terp-check" string="Sales" name="sales" domain="[('state','in',('manual','progress'))]"/>
<separator orientation="vertical"/>