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 b2916abf44
commit fc08e19d39
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ class Operation(sequence_ordered(), 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):