diff --git a/delivery_purchase_label/models/purchase_order.py b/delivery_purchase_label/models/purchase_order.py index 827a98b8a0..4d7a66caf5 100644 --- a/delivery_purchase_label/models/purchase_order.py +++ b/delivery_purchase_label/models/purchase_order.py @@ -9,7 +9,9 @@ class PurchaseOrder(models.Model): _inherit = "purchase.order" vendor_label_carrier_id = fields.Many2one( - "delivery.carrier", "Vendor Label Carrier" + "delivery.carrier", + "Vendor Label Carrier", + domain=[("purchase_label_picking_type", "!=", False)], ) delivery_label_picking_id = fields.Many2one( "stock.picking",