Change operation search_rec_name() so that it searches on production's rec_name too.
This commit is contained in:
parent
b2916abf44
commit
fc08e19d39
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue