智能工厂-制造模块基础设置新增托盘

This commit is contained in:
jinling.yang
2022-10-19 15:46:07 +08:00
parent 97527da4d3
commit 33adc646e2
4 changed files with 75 additions and 84 deletions

View File

@@ -68,6 +68,13 @@ class MrsProcessingOrder(models.Model):
production_process_id = fields.Many2one('mrs.production.process', string="表面工艺")
class ProductTemplate(models.Model):
_inherit = 'product.template'
_description = '产品'
class Tray(models.Model):
_name = 'sf.tray'
_description = '托盘'
code = fields.Char('编码')
name = fields.Char('名称')
state = fields.Selection(
[("空闲", "空闲"), ("占用", "占用"), ("报损", "报损")],
default=" ", string="状态")
active = fields.Boolean('有效', default=True)