mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_production_hierarchy: do not display canceled production orders
This commit is contained in:
@@ -42,7 +42,8 @@ class MrpProduction(models.Model):
|
||||
self.ensure_one()
|
||||
if self.child_ids:
|
||||
return {
|
||||
'domain': "[('id', '=', %s)]" % self.id,
|
||||
'domain': "[('id', '=', %s), ('state', '!=', 'cancel')]" % (
|
||||
self.id),
|
||||
'name': _(u"Hierarchy"),
|
||||
'view_type': 'tree',
|
||||
'view_mode': 'tree',
|
||||
|
||||
Reference in New Issue
Block a user