diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 083f597af4f..3f6ca093a7f 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1166,6 +1166,9 @@ class Facture extends CommonInvoice // Source invoice load $facture = new Facture($this->db); + // Avoid updating the row ranks + $facture->context['createfromclone'] = 1; + // Retrieve all extrafield // fetch optionals attributes and labels $this->fetch_optionals();