[FIX] sale: backport of rev 709e22c32aca
authorDenis Ledoux <dle@openerp.com>
Tue, 13 May 2014 08:15:01 +0000 (10:15 +0200)
committerSimon Lejeune <sle@openerp.com>
Mon, 15 Sep 2014 14:57:51 +0000 (16:57 +0200)
[FIX] sale: sale report view, wrong domain

Quotations are sale.order with state draft and sent
Sale orders are sale.order with state other than draft, sent and cancel

addons/sale/report/sale_report_view.xml

index 8f725a9..7ddba9b 100644 (file)
@@ -48,8 +48,8 @@
             <search string="Sales Analysis">
                 <field name="date"/>
                 <field name="date_confirm"/>
-                <filter icon="terp-document-new" string="Quotations" domain="[('state','=','draft')]"/>
-                <filter icon="terp-check" string="Sales" domain="[('state','not in',('draft','done','cancel'))]"/>
+                <filter icon="terp-document-new" string="Quotations" domain="[('state','in',('draft','sent'))]"/>
+                <filter icon="terp-check" string="Sales" domain="[('state','not in',('draft','sent','cancel'))]"/>
                 <separator/>
                 <filter icon="terp-accessories-archiver" string="Picked" domain="[('shipped','=',True)]"/>
                 <separator/>