23 lines
780 B
Python
23 lines
780 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields, api, exceptions, _
|
|
|
|
class YuthonTaskSetting(models.Model):
|
|
_name = 'yuthon.task.setting'
|
|
_description = '作业项目配置'
|
|
|
|
name = fields.Char(string='名称', required=True)
|
|
standard = fields.Text(string='标准')
|
|
inspector = fields.Text(string='工作要求')
|
|
scope = fields.Char(string='发放范围')
|
|
concentration = fields.Float(string="浓度")
|
|
warning_value = fields.Float(string="警戒值")
|
|
number = fields.Integer(string="数量")
|
|
|
|
|
|
class YuthonStackPosition(models.Model):
|
|
_name = 'yuthon.stack.position'
|
|
_description = '堆垛位置'
|
|
|
|
name = fields.Char(string='名称', required=True) |