1.sf的工作中心新增表面工艺字段,工序类型新增表面工艺类型,且当工序类型为表面工艺时,则显示表面工艺,其他则不显示
2.sf的工作中心新增工艺外协字段,该字段若被勾选则为表面工艺的外协加工中心 3.sf的销售订单上点击生成制造订单时在已有的成品工序后累加表面工艺工序,表面工艺的工序生成规则需根据表面工艺所对应的类别的排序来依次生成,并且工序里的工作中心的匹配规则需根据表面工艺的可选参数里的获取方式字段的值来匹配
This commit is contained in:
@@ -66,7 +66,6 @@ class MrsProductionProcess(models.Model):
|
||||
# workcenter_ids = fields.Many2many('mrp.workcenter', 'rel_workcenter_process', required=True)
|
||||
|
||||
|
||||
|
||||
class MrsProcessingTechnology(models.Model):
|
||||
_name = 'sf.processing.technology'
|
||||
_description = '加工工艺'
|
||||
@@ -123,4 +122,9 @@ class MrsProductionProcessParameter(models.Model):
|
||||
# price = fields.Float('单价')
|
||||
process_id = fields.Many2one('sf.production.process', string='表面工艺')
|
||||
materials_model_ids = fields.Many2many('sf.materials.model', 'applicable_material', string='适用材料')
|
||||
active = fields.Boolean('有效', default=True)
|
||||
active = fields.Boolean('有效', default=True)
|
||||
|
||||
# 获取表面工艺的获取方式
|
||||
def get_gain_way(self, item):
|
||||
process_parameter = self.env['sf.production.process.parameter'].search([('id', '=', item.id)])
|
||||
return process_parameter
|
||||
|
||||
Reference in New Issue
Block a user