Hello @ all
i have problem with my installation…
i have 15.0.3 version installed and all works well until i change something i thing in config and now when im going to make payment to invoice im take error “BadValueForParameterModele”
any idea???
Hello @ all
i have problem with my installation…
i have 15.0.3 version installed and all works well until i change something i thing in config and now when im going to make payment to invoice im take error “BadValueForParameterModele”
any idea???
It’s just a hypothesis but …
have you deactivated / deleted the print templates of any module?
no!
i have the same error when add product or services to invoice!
hello
can you check tour invoice setup, with payments tab
this error may correspond with a blank value on your mask
Good continuation
Hello
im change it but im taking the same error
can you answer with a screen copy of your payment setup
This message is created in htdocs\core\class\commonobject.class.php in the function “commonGenerateDocument”. It’s triggerd by a empty or misconfigured var “$modele”.
So check the var “$modele” in this function…
public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null)
{
global $conf, $user, $langs;
$langs->load("suppliers");
$outputlangs->load("products");
// Set the model on the model name to use
if (empty($modele)) {
if (!empty($conf->global->INVOICE_SUPPLIER_ADDON_PDF)) {
$modele = $conf->global->INVOICE_SUPPLIER_ADDON_PDF;
} else {
$modele = ''; // No default value. For supplier invoice, we allow to disable all PDF generation
}
}
if (empty($modele)) {
return 0;
} else {
$modelpath = "core/modules/supplier_invoice/doc/";
return $this->commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams);
}
}
You can also check the table with
SELECT * FROM dolibarr.llx_const WHERE name = 'INVOICE_SUPPLIER_ADDON_PDF';
i.e. result looks like this
'532', 'INVOICE_SUPPLIER_ADDON_PDF', '1', 'canelle', 'chaine', '0', '', '2022-03-09 10:30:40'
`
i check the file to find it but not exist!
can add it somewhere?
? Do I understand correctly that you can not find the file or the function within the file?
Can you please post the result from the suggested SQL-Command?