From 297cf7c7ea0ab0071553efb6ce9cded4763ed6b9 Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Thu, 8 Jun 2023 14:33:54 +0000 Subject: [PATCH] [FIX] purchase_requisition : prevent creating purchase agreement from PO form When you create a purchase agreement from the from view of a purchase order , it can have some invalid states which may lead to not having a vendor too. Since choosing a purchase agreement makes the vendor read only on the PO form , then it may lead to having a PO form without a vendor and can't update it. Steps to reproduce the error : 1- activate blanked orders 2- create a new purchase order directly from the PO form opw-3335891 closes odoo/odoo#124528 X-original-commit: 100187e904b85306a7823c54adb78f493abacf78 Signed-off-by: Tiffany Chang Signed-off-by: Mahdi Cheikh Rouhou (macr) --- addons/purchase_requisition/views/purchase_views.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/purchase_requisition/views/purchase_views.xml b/addons/purchase_requisition/views/purchase_views.xml index 4b42db02cdb..4ef0801a5cc 100644 --- a/addons/purchase_requisition/views/purchase_views.xml +++ b/addons/purchase_requisition/views/purchase_views.xml @@ -11,7 +11,8 @@ - +