diff --git a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php index 8c2493730e038..6c72d4282979e 100644 --- a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php +++ b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php @@ -102,10 +102,11 @@ function get_substitutionarray_object($object,$outputlangs) 'object_ref_ext'=>$object->ref_ext, 'object_ref_customer'=>$object->ref_client, 'object_date'=>dol_print_date($object->date,'day'), - 'object_fin_validite'=>dol_print_date($object->fin_validite,'dayhour'), + 'object_date_delivery'=>dol_print_date($object->date_livrasion,'dayhour'), 'object_date_creation'=>dol_print_date($object->date_creation,'day'), 'object_date_modification'=>dol_print_date($object->date_modification,'day'), 'object_date_validation'=>dol_print_date($object->date_validation,'dayhour'), + 'object_date_close'=>dol_print_date($object->date_cloture,'dayhour'), 'object_payment_mode'=>$object->mode_reglement, 'object_payment_term'=>$object->cond_reglement, 'object_total_ht'=>price($object->total_ht,0,$outputlangs), diff --git a/htdocs/install/doctemplates/orders/template_order.odt b/htdocs/install/doctemplates/orders/template_order.odt index abfcae8e85afa..d73f957297fa5 100644 Binary files a/htdocs/install/doctemplates/orders/template_order.odt and b/htdocs/install/doctemplates/orders/template_order.odt differ