Change operation search_rec_name() so that it searches on production's rec_name too.
This commit is contained in:
parent
6d3104c257
commit
0d92eaa4be
|
@ -85,7 +85,10 @@ class Operation(Workflow, ModelSQL, ModelView):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def search_rec_name(cls, name, clause):
|
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
|
@classmethod
|
||||||
def create(cls, vlist):
|
def create(cls, vlist):
|
||||||
|
|
Loading…
Reference in New Issue