Files
gzth/yuthon_property_approval/models/property_material_procurement.py
T
2024-09-20 23:03:47 +08:00

16 lines
719 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 PropertyMaterialProcurement(models.Model):
_name = 'property.material.procurement'
_description = '物资配件采购单审批'
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin']
_rec_name = 'name'
name = fields.Char(string='标题')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code('property_material_procurement_code'))
property_documents_ids = fields.Many2many('documents.document', string="物资配件采购单文件")