19 lines
635 B
Python
19 lines
635 B
Python
from odoo import models, fields, api
|
|
|
|
|
|
class FunctionalFixtureType(models.Model):
|
|
_name = 'sf.functional.fixture.type'
|
|
_description = "功能夹具类型"
|
|
|
|
code = fields.Char(string='编码', readonly=True)
|
|
name = fields.Char(string="名称", size=15)
|
|
remark = fields.Char(string="备注")
|
|
|
|
|
|
class FunctionalFixture(models.Model):
|
|
_name = 'sf.functional.fixture'
|
|
_description = "功能夹具"
|
|
|
|
code = fields.Char(string='编码', readonly=True)
|
|
name = fields.Char(string="名称", size=15)
|
|
functional_fixture_type_id = fields.Many2one('mrs.functional.fixture.type', string="功能夹具类型" ) |