15 lines
581 B
Python
15 lines
581 B
Python
from odoo import models, fields, api
|
|
|
|
|
|
class PropertyConstructionWorks(models.Model):
|
|
_name = 'property.construction.works'
|
|
_description = '建设工程'
|
|
|
|
name = fields.Char(string='项目名称')
|
|
contract_code = fields.Char(string='合同编号')
|
|
contract_content = fields.Text(string='合同内容')
|
|
department_id = fields.Many2one('hr.department', string="部门")
|
|
party_name = fields.Char(string='乙方名称')
|
|
contract_state = fields.Selection([('none', '未开始'), ('in_progress', '进行中'), ('done', '完成')], string='合同状态')
|
|
|