diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index a4789e328..c87be5a8e 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -9,6 +9,7 @@ class InheritPurchaseOrder(models.Model): _name = 'purchase.order' _inherit = ['purchase.order', 'soong.workflow.mixin'] + active = fields.Boolean('Active', default=True, tracking=True) json_display = fields.Char( string="物品详情", compute='_compute_json_display', diff --git a/yuthon_purchase/views/inherit_purchase_order_views.xml b/yuthon_purchase/views/inherit_purchase_order_views.xml index b667adcd7..187150e45 100644 --- a/yuthon_purchase/views/inherit_purchase_order_views.xml +++ b/yuthon_purchase/views/inherit_purchase_order_views.xml @@ -38,6 +38,7 @@ + 1