采购申请字段调整

This commit is contained in:
yuxianghui
2025-03-21 15:05:42 +08:00
parent c2be45f204
commit 80e9085e29
4 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from odoo import api, fields, models, _
class PurchaseOrder(models.Model):
_inherit = 'purchase.order'
state = fields.Selection([
('draft', '询价'),
('sent', '发送询价'),
('to approve', '待批准'),
("approved", "已批准"),
('purchase', '采购订单'),
('done', '完成'),
('cancel', '取消'),
('rejected', '已驳回')
], string='Status', readonly=True, index=True, copy=False, default='draft', tracking=True)