From 0d92eaa4be1283960237f55087596f67d63983d0 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 3 Mar 2016 14:35:13 +0100 Subject: [PATCH] Change operation search_rec_name() so that it searches on production's rec_name too. --- operation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/operation.py b/operation.py index 4153c65..2e159f8 100644 --- a/operation.py +++ b/operation.py @@ -85,7 +85,10 @@ class Operation(Workflow, ModelSQL, ModelView): @classmethod def search_rec_name(cls, name, clause): - return [('operation_type.name',) + tuple(clause[1:])] + return ['OR', + ('operation_type.name',) + tuple(clause[1:]), + ('production',) + tuple(clause[1:]), + ] @classmethod def create(cls, vlist):