Change operation search_rec_name() so that it searches on production's rec_name too.

This commit is contained in:
Albert Cervera i Areny 2016-03-03 14:35:13 +01:00
parent 6d3104c257
commit 0d92eaa4be
1 changed files with 4 additions and 1 deletions

View File

@ -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):