mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] quality_control_issue: add scrap feature.
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
da469d7fbf
commit
ca2ca944a3
@@ -101,9 +101,12 @@ class QcProblem(models.Model):
|
||||
team_ids.add(problem.team_id.id)
|
||||
search_domain = []
|
||||
if team_ids:
|
||||
search_domain += [('|')] * (len(team_ids) - 1)
|
||||
search_domain += [('|')] * (len(team_ids))
|
||||
search_domain.append(('qc_team_id', '=', False))
|
||||
for team_id in team_ids:
|
||||
search_domain.append(('qc_team_id', '=', team_id))
|
||||
else:
|
||||
search_domain.append(('qc_team_id', '=', False))
|
||||
search_domain += list(domain)
|
||||
# perform search, return the first found
|
||||
stage = self.env['qc.stage'].search(
|
||||
|
||||
Reference in New Issue
Block a user