16 lines
500 B
Python
16 lines
500 B
Python
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) |