采购
This commit is contained in:
@@ -53,6 +53,15 @@ class InheritPurchaseOrder(models.Model):
|
||||
store=True
|
||||
)
|
||||
|
||||
# 入库进度(根据关联入库单的 receipt_status 聚合)
|
||||
picking_receipt_state = fields.Selection([
|
||||
('waiting', '待验收'),
|
||||
('certification', '证明入库'),
|
||||
('done', '已入库'),
|
||||
], string="入库状态", compute='_compute_picking_receipt_state', store=False)
|
||||
|
||||
|
||||
|
||||
@api.depends('log_ids', 'work_end')
|
||||
def _compute_purchase_state(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user