506 Commits

Author SHA1 Message Date
Laurent Destailleur
f8a37ca704 Import 2026-03-11 20:52:39 +01:00
Laurent Destailleur
acb525524e NEW Better look and feel v24 in import/export tool 2026-03-10 11:33:18 +01:00
Laurent Destailleur
3dfce11ae8 Merge 2026-03-05 00:42:13 +01:00
Laurent Destailleur
1650d96091 FIX Pb with import of agendaevents. Date and import id not visible. 2026-03-04 16:52:48 +01:00
Laurent Destailleur
302dcd4aa0 Fix import key not visible 2026-02-28 15:34:30 +01:00
Laurent Destailleur
a9c85c78e2 Automated merge from 23.0 to develop 2026-02-28 12:17:11 +01:00
VIAL-GOUTEYRON Quentin
23f9aeded0 NEW Add CSV/XLSX import mode to disable triggers execution (refactoring of import, while preserving legacy SQL compatibility) (#37367)
* Add support for optimized import trigger modes and bulk processing

Introduced new features and optimizations for the import module:
- **Trigger Modes**: Added `strict_line` (default, triggers per row) and `fast_bulk` (triggers aggregate events for bulk imports).
- **Simulation Mode**: Implemented a simulation flag to enable preview of imports without executing triggers.
- **Trigger Cache/Optimization**: Added caching for trigger objects and hook-resolved actions, enhancing performance during legacy SQL imports.
- **Bulk Trigger Stats**: Integrated stats tracking for bulk operations (insert/update) by table, facilitating analytical insight during bulk imports.
- **Extended Trigger Logic**: Enhanced trigger handling:
  - Dynamically resolved actions based on context (table, operation, object class).
  - Introduced hooks for custom import trigger actions.
  - Provided fallback mechanisms for unmapped table-element relationships.
- **Compatibility**: Maintained compatibility with legacy strict-line mode using object-based trigger execution.

These updates improve import performance, scalability, and flexibility while maintaining robust backward compatibility.

* fix

* fix

* refacto

* precommit

* retour

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-27 16:35:36 +01:00
Alexandre SPANGARO
19a29402de Warning on export/import - Add isset() protection in Export::load_arrays() & Import::load_arrays() (#37043)
* Warning on export - Add isset() protection in Export::load_arrays()

* Warning on import - Add isset() protection in Import::load_arrays()

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-01 01:27:33 +01:00
Laurent Destailleur
4b9b0877b1 Debug v23 2026-01-15 01:10:28 +01:00
Laurent Destailleur
474e21dc6f Debug v23 2025-12-15 15:15:41 +01:00
Laurent Destailleur
7ce1e893de FIX #36576 - date creation is empty on import 2025-12-15 14:56:16 +01:00
Laurent Destailleur
e350886c15 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-12-04 20:38:22 +01:00
tcesar
6545957cbd Fix traduction for import error 2025-12-02 16:37:30 +01:00
Alexandre SPANGARO
c9d1179ba8 FIX Import/Export - Do not list imports or exports of Builder module backups of module descriptor files (#36192)
* FIX Import/Export - Do not list imports or exports of Builder module backups of module descriptor files

* FIX
2025-11-09 19:29:02 +01:00
Alexandre SPANGARO
61ddab5061 FIX Import/Export - Do not list imports or exports of Builder module backups of module descriptor files (#36192)
* FIX Import/Export - Do not list imports or exports of Builder module backups of module descriptor files

* FIX
2025-11-09 19:28:16 +01:00
ldestailleur
a162de2455 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-10-09 18:47:52 +02:00
ldestailleur
d17f13f149 FIX detection of setup not done with
MAIN_MIN_NB_ENABLED_MODULE_FOR_WARNING
2025-10-09 13:13:51 +02:00
ldestailleur
ad830a346e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-09-23 16:50:17 +02:00
ldestailleur
6ead2839d0 Fix missing several test on permission on actions 2025-09-23 16:41:53 +02:00
Frédéric FRANCE
926defb22c add more parameters to restrictedArea hook (#35013)
* add more parameters to hook

* add more parameters to hook

* add more parameters to hook

* add more parameters to hook

* add more parameters to hook

* add more parameters to hook

* add more parameters to hook

* add more parameters to hook
2025-08-20 18:57:52 +02:00
ldestailleur
9b365c97b8 Fix when help is shown 2025-08-20 17:57:08 +02:00
ldestailleur
0512428c53 Help missing 2025-08-20 17:47:24 +02:00
ldestailleur
ec5275e1d9 Fix picto download/upload 2025-06-23 03:36:27 +02:00
ldestailleur
5998b62a64 Debug v22 2025-04-25 16:25:07 +02:00
Laurent Destailleur
aaf70a5942 Merge import/export in same parent menu. 2025-04-24 02:22:12 +02:00
Laurent Destailleur
932c3e66da Clean page content 2025-04-17 18:56:32 +02:00
Laurent Destailleur
af31230980 CSS 2025-04-17 17:49:18 +02:00
ldestailleur
bd0ad59ec8 Fix phpunit 2025-03-12 18:53:36 +01:00
ldestailleur
9eb2f96d38 Clean code 2025-03-12 18:34:17 +01:00
ldestailleur
675fbc2761 FIX Add one more column too much in import 2025-03-12 16:25:40 +01:00
ldestailleur
3e24bbd419 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-08 14:51:36 +01:00
ldestailleur
18a4224e5d Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-03-08 14:51:04 +01:00
ldestailleur
e14b748fa2 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-03-06 13:38:22 +01:00
EnjoyFelix
8f44b0a974 # FIX The "AfterImportInsert" hook is not triggered during the simulation. #33260 (#33261)
* AfterImport hook in the simulation of the import

* Update import.php

* Update import.php

* Update import.php

---------

Co-authored-by: Elisée Chemin <elisee.chemin@tetras-libre.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-06 13:37:37 +01:00
MDW
45868680a7 Qual: Revert renaming of llxHeader/Footer(Vierge) because used in functions.lib:recordNotFound 2025-02-12 23:41:08 +01:00
MDW
aa521a46d2 Qual: Fix phan notices (import) 2025-02-05 01:43:38 +01:00
Laurent Destailleur
f8d8abd70b Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-02 15:59:37 +01:00
Laurent Destailleur
7dee283762 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-01-16 16:34:32 +01:00
Laurent Destailleur
949c111f68 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-01-16 16:32:40 +01:00
Frédéric FRANCE
d770d37e29 add phpcs rule extension (#36561)
* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* test

* test

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix translations

* fix translations

* translate

* translate

* translate

* translate

* translate

* translate

* translate

* Update propal.class.php
2026-01-15 16:05:06 +01:00
Lucas Marcouiller
489197f1a5 NEW import process by removing some steps (#36811)
* Fix import process by removing some steps

* fix Ci

---------

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
2026-01-10 17:49:28 +01:00
Laurent Destailleur (aka Eldy)
935e7e6d31 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-06 17:44:06 +01:00
Laurent Destailleur
6f63314d30 Debug v21 2025-01-06 03:34:20 +01:00
Laurent Destailleur
4dbbb1abe3 Debug v21 2025-01-06 02:27:51 +01:00
Jyhere
ea67c6d727 FIX: double space file bug when using dolibarr import 2024-12-31 10:18:48 +01:00
Frédéric FRANCE
23a0c427ea fix CI 2024-12-18 17:56:41 +01:00
Laurent Destailleur (aka Eldy)
60624b0b53 Debug v21 2024-12-18 12:21:54 +01:00
MDW
9ec4618199 Qual: Fix FunctionArray phan notices (#31754)
* Qual: Fix FunctionArray phan notices

* Fix class name in typing of htdocs/modulebuilder/index.php

* Fix customreports phpdoc

* Adjust file type after completeFileArrayWithDatabaseInfo

* Further phpdoc typing improvements

* More phpdoc

* Improve typing with cast on position field

* Force phpstan version

* Add phpstan exception

* Fix array index type + adjust phan config comment
2024-11-11 14:48:18 +01:00
MDW
178d748cad Qual: Fix phan/phpstan notices in class files (part 5) (#31617)
* Qual: fix commonstickergen..don.class

* Fix notifications for pdf_paiement...cronjob.class

* Qual: Fix notifications for emailcollector..price_parser.class

* Ensure that NULL is used in the database when fk's are 0/empty

* Fix notifications for pdf_paiement...cronjob.class

* Cope with updated phpstan, and make fk_origin_stock int in multiple locations
2024-11-06 20:15:15 +01:00
Frédéric FRANCE
0d7bc505d3 add phpdoc and clean phpstan baseline (#31702)
* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline
2024-11-06 19:39:46 +01:00