托盘绑定工单,托盘生成二维码

This commit is contained in:
gqh
2022-10-25 17:19:42 +08:00
parent 9ee33ae0b9
commit 0fb751ebbe
8 changed files with 164 additions and 12 deletions

View File

@@ -72,9 +72,9 @@ class Tray(models.Model):
_name = 'sf.tray'
_description = '托盘'
code = fields.Char('编码')
code = fields.Char('编码',copy=False)
name = fields.Char('名称')
state = fields.Selection(
[("空闲", "空闲"), ("占用", "占用"), ("报损", "报损")],
default=" ", string="状态")
default="空闲", string="状态")
active = fields.Boolean('有效', default=True)