From f26df86ea9e36c5d82a944b1500d4df2cb798f3e Mon Sep 17 00:00:00 2001 From: Commandant Custo Date: Fri, 28 Aug 2015 10:36:25 +0200 Subject: [PATCH] [FIX] portal_sale: fix default domains Quotations/Sales orders menu in the portal must copy the behavior of the menus in the regular back-end. Backport of e5c5b1cc23f3f95af9b2dd056f21ab0dfbd63fd8 closes #8271 opw:648186 --- addons/portal_sale/portal_sale_view.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/portal_sale/portal_sale_view.xml b/addons/portal_sale/portal_sale_view.xml index 80dff872377..be4cf460a6b 100644 --- a/addons/portal_sale/portal_sale_view.xml +++ b/addons/portal_sale/portal_sale_view.xml @@ -44,7 +44,8 @@ ir.actions.act_window sale.order tree,form - {"search_default_draft":1} + [('state','in',('draft','sent','cancel'))] + {} We haven't sent you any quotation. @@ -55,7 +56,8 @@ sale.order tree,form - {"search_default_sales":1} + [('state', 'not in', ('draft', 'sent', 'cancel'))] + {} We haven't sent you any sales order.