修改计划-生产订单列表只显示制造订单
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user