新增夹具和功能夹具,及同步mrs的夹具和功能夹具
This commit is contained in:
19
sf_base/models/functional_fixture.py
Normal file
19
sf_base/models/functional_fixture.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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="功能夹具类型" )
|
||||
Reference in New Issue
Block a user