From cc4f86dac323c361fc69870596c312e9fe15f8fe Mon Sep 17 00:00:00 2001 From: lamrani abdelwadoud Date: Mon, 28 Oct 2024 14:51:36 +0100 Subject: [PATCH] New functionality Generate img product (#29731) * New functionality for generate image for product * New functionality for generate image for product * Fix errors CTI * remove null for second params * fix CTI errors again * Fix whitespace * Fix whitespaces again * Fix run phan * Update commonobject.class.php --------- Co-authored-by: Laurent Destailleur --- htdocs/core/class/html.formmail.class.php | 44 ++++++++++++++++++++--- htdocs/langs/en_US/products.lang | 2 ++ htdocs/product/document.php | 22 ++++++++++++ 3 files changed, 64 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index d88c24fd9b6..ccf22410156 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -1506,6 +1506,10 @@ class FormMail extends Form $out .= ''.$langs->trans("AIProcessingPleaseWait", getDolGlobalString('AI_API_SERVICE', 'chatgpt')); $out .= ''; + if ($function == 'imagegeneration') { + $out .= '
'; // Div for displaying the generated image + } + $out .= "\n"; $out .= "