From bc33f7e1a7fdbdf5535d7ac4e146a4647ad35100 Mon Sep 17 00:00:00 2001 From: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com> Date: Tue, 22 Jul 2025 12:10:41 +0200 Subject: [PATCH] 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) --- htdocs/compta/facture/class/facture.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 4a10e111f71..3f42160dfd1 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -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 = '';