diff --git a/htdocs/core/tpl/objectline_edit.tpl.php b/htdocs/core/tpl/objectline_edit.tpl.php index fba73125aa5..d9c8a09a384 100644 --- a/htdocs/core/tpl/objectline_edit.tpl.php +++ b/htdocs/core/tpl/objectline_edit.tpl.php @@ -145,6 +145,11 @@ $coldisplay++; } // Do not allow editing during a situation cycle + // but in some situations that is required (update legal informations for example) + if (!empty($conf->global->INVOICE_SITUATION_CAN_FORCE_UPDATE_DESCRIPTION)) { + $situationinvoicelinewithparent = 0; + } + if (!$situationinvoicelinewithparent) { // editor wysiwyg require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; @@ -226,7 +231,7 @@ $coldisplay++; if ($inputalsopricewithtax) { $coldisplay++; print 'fk_prev_id != null) { + if ($situationinvoicelinewithparent) { print ' readonly'; } print '>';