修改计划-生产订单列表只显示制造订单

This commit is contained in:
hujiaying
2024-09-10 14:50:24 +08:00
parent 65781570e7
commit 3ed338ed64
3 changed files with 59 additions and 57 deletions

View File

@@ -22,10 +22,3 @@ class MrpProduction(models.Model):
wo.current_quality_check_id._update_component_quantity()
return productions
@api.model
def web_search_read(self, domain=None, fields=None, offset=0, limit=None, order=None, count_limit=None):
picking_type = self.env['stock.picking.type'].search([('name', 'ilike', '制造')])
if picking_type:
domain.append(('picking_type_id', 'in', picking_type.ids))
records = super(MrpProduction, self).web_search_read(domain, fields, offset, limit, order, count_limit)
return records