From 45779b4068b34dc78dcefe0dabe43b65e04302ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 27 Sep 2017 18:37:27 +0200 Subject: [PATCH] Fix searcher methods for dot notation issue6757 review40651002 --- purchase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/purchase.py b/purchase.py index ef62c510c8..94c8841c15 100644 --- a/purchase.py +++ b/purchase.py @@ -111,6 +111,6 @@ class AnalyticAccountEntry: domain = super(AnalyticAccountEntry, cls).search_company(name, clause) return ['OR', domain, - (('origin.purchase.company',) + tuple(clause[1:]) - + ('purchase.line',)), + (('origin.purchase.' + clause[0],) + tuple(clause[1:3]) + + ('purchase.line',) + tuple(clause[3:])), ]