移除托盘对象 并清除所有关联关系

This commit is contained in:
qihao.gong@jikimo.com
2023-08-17 16:33:40 +08:00
parent 6193fa3c09
commit 08ac2978a1
12 changed files with 291 additions and 292 deletions

View File

@@ -124,16 +124,16 @@ class MrsProcessingOrder(models.Model):
production_process_id = fields.Many2one('sf.production.process', string="表面工艺")
class Tray(models.Model):
_name = 'sf.tray'
_description = '托盘'
code = fields.Char('编码', copy=False)
name = fields.Char('名称')
state = fields.Selection(
[("空闲", "空闲"), ("占用", "占用"), ("报损", "报损")],
default="空闲", string="状态")
active = fields.Boolean('有效', default=True)
# class Tray(models.Model):
# _name = 'sf.tray'
# _description = '托盘'
#
# code = fields.Char('编码', copy=False)
# name = fields.Char('名称')
# state = fields.Selection(
# [("空闲", "空闲"), ("占用", "占用"), ("报损", "报损")],
# default="空闲", string="状态")
# active = fields.Boolean('有效', default=True)
class SupplierSort(models.Model):