From 4ecf30824ec4e5deb3661e6b65c3d0be5827edee Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 11 Sep 2012 15:07:01 +0200 Subject: [PATCH] [IMP] fix needaction for SO/PO, using domain instead of defautl searches bzr revid: fp@tinyerp.com-20120911130701-1jplopfxlmd2hm7r --- addons/purchase/purchase_view.xml | 4 +++- addons/sale/sale_view.xml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index ab5df67f52d..5d6f6c34b3b 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -347,6 +347,7 @@ ir.actions.act_window purchase.order {'search_default_draft': 1} + [('state','in',('draft','sent','confirmed'))] tree,form,graph,calendar @@ -371,7 +372,8 @@ ir.actions.act_window purchase.order tree,form,graph,calendar - {'search_default_approved': 1} + {} + [('state','not in',('draft','sent','confirmed'))]

diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 2c2acff227e..1f077f6601d 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -404,7 +404,8 @@ form tree,form,calendar,graph - {"search_default_sales":1} + {} + [('state','not in',('draft','sent','cancel'))]

Click to create a quotation that can be converted into a sale @@ -445,7 +446,8 @@ sale.order form tree,form,calendar,graph - {"search_default_draft":1} + {} + [('state','in',('draft','sent','cancel'))]