diff --git a/modules/axelor-open-suite/axelor-supplier-management/src/main/java/com/axelor/apps/suppliermanagement/web/PurchaseOrderLineController.java b/modules/axelor-open-suite/axelor-supplier-management/src/main/java/com/axelor/apps/suppliermanagement/web/PurchaseOrderLineController.java
index 2961f36..2c5b3fa 100644
--- a/modules/axelor-open-suite/axelor-supplier-management/src/main/java/com/axelor/apps/suppliermanagement/web/PurchaseOrderLineController.java
+++ b/modules/axelor-open-suite/axelor-supplier-management/src/main/java/com/axelor/apps/suppliermanagement/web/PurchaseOrderLineController.java
@@ -26,6 +26,7 @@ import com.axelor.inject.Beans;
import com.axelor.rpc.ActionRequest;
import com.axelor.rpc.ActionResponse;
import com.google.inject.Singleton;
+import com.axelor.rpc.Context;
@Singleton
public class PurchaseOrderLineController {
@@ -49,4 +50,14 @@ public class PurchaseOrderLineController {
TraceBackService.trace(response, e);
}
}
+
+ public void defaultValuesSuppliersRequests(ActionRequest request, ActionResponse response) {
+
+ try {
+ Context context = request.getContext().getParent();
+ response.setValue("availableQty",context.get("qty"));
+ } catch (Exception e) {
+ TraceBackService.trace(response, e);
+ }
+ }
}
diff --git a/modules/axelor-open-suite/axelor-supplier-management/src/main/resources/domains/PurchaseOrderSupplierLine.xml b/modules/axelor-open-suite/axelor-supplier-management/src/main/resources/domains/PurchaseOrderSupplierLine.xml
index 57caed7..b9ab087 100644
--- a/modules/axelor-open-suite/axelor-supplier-management/src/main/resources/domains/PurchaseOrderSupplierLine.xml
+++ b/modules/axelor-open-suite/axelor-supplier-management/src/main/resources/domains/PurchaseOrderSupplierLine.xml
@@ -21,6 +21,16 @@
+
+
+
+
+
+
+
+
+
+