FIX 17.0: when you clone an invoice that was created from a template invoice, the clone should not be linked to the template invoice (#34777)

This commit is contained in:
Florian Mortgat 2025-07-22 12:10:41 +02:00 committed by GitHub
parent 3c1b5846c9
commit bc33f7e1a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1255,6 +1255,7 @@ class Facture extends CommonInvoice
$object->user_valid = null; // deprecated
$object->fk_user_author = $user->id;
$object->fk_user_valid = null;
$object->fk_fac_rec_source = null;
$object->fk_facture_source = 0;
$object->date_creation = '';
$object->date_modification = '';