Commit graph

153687 commits

Author SHA1 Message Date
Laurent Destailleur
94c6bea4e1 Debug v24 2026-04-27 15:36:52 +02:00
Laurent Destailleur
05c29f10e5 Debug v24 2026-04-27 15:20:30 +02:00
Laurent Destailleur
96eb43c567 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-27 15:05:42 +02:00
Laurent Destailleur
61ad09cdd6 CI 2026-04-27 15:05:31 +02:00
Laurent Destailleur
11a79b9a70 CI 2026-04-27 15:01:23 +02:00
Jon Bendtsen
483b2255de
NEW API get country: load region and load states now an option (#37715)
* API setup get country dictionary: load region and load states now an option

* Adding load region and state to the long list of countries + hurl tests for this and on getting by id, code and ISO

* Create CcountryExtended which is a Ccountry object with regions and states included

* pre-commit hook fix

* fix PhanTypeMismatchProperty

* fix php-stan

* circumvent phan that complains about parameter order

* no special function for fetching ccountryextended as we add the states and regions in the API functions

* Using API functions to insert states and regions when requested

* always use extended country

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-04-27 14:56:05 +02:00
Milen Karaganski
cb317ddc11
Refactor modulebuilder setup UI for numbering and document models (#38008)
* Refactor module setup UI to group numbering and document models into single sections

Avoid duplicate “Numbering models” and “Document models” blocks per object
Render one section per type with grouped rows per object
Add pre-checks to skip sections when no models are available
Fix document model filtering per object (avoid cross-listing)
Reset file list per directory scan to prevent duplicates

* FIX CI Error `Error: If condition is always false.` and `Error: Unreachable statement - code above always terminates.`

* - Remove duplicate `Access control` statement
- Replace `header(...);return;` with ``header(...);exit;``

* Fix PHP Stan errors
2026-04-27 14:53:59 +02:00
MDW
8ccb7dfd16
Qual: Fix PHPStan notices (#38007)
# Qual: Fix PHPStan notices

Fix several possibly undefined variable notices
2026-04-27 14:52:01 +02:00
Eduardo Pulpillo
ecb6fe3d6d
Add potential kits stock message to products.lang (#38015)
Add a new translation string to make the text "PotentialKitsFromStock" appear in your chosen language. New string:  PotentialKitsFromStock

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-27 14:46:05 +02:00
Laurent Destailleur
d6db92d323 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-04-27 14:43:34 +02:00
Laurent Destailleur
8aa00a8908 Clean code. Add comment on fields. Use the correct rounding param. 2026-04-27 14:13:45 +02:00
Laurent Destailleur
ff8650f6bc Look and feel v24 2026-04-27 05:29:18 +02:00
Laurent Destailleur
aab76422eb Debug v24 2026-04-27 05:22:22 +02:00
Laurent Destailleur
dd8d61e0b2 NEW Add stat page in template of modulebuilder 2026-04-27 05:18:24 +02:00
Laurent Destailleur
1e6492c17a Work on stats page in template module 2026-04-27 04:55:29 +02:00
Laurent Destailleur
b265ee5c0e Doc 2026-04-27 03:47:10 +02:00
Laurent Destailleur
7fd5933504 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-27 03:33:06 +02:00
Laurent Destailleur
df2672c2d3 Clean code 2026-04-27 03:32:54 +02:00
MathildeMar
4af0b9da86
FIX missing Hooks (#38000)
* Fix Hooks

Fix and add hook calls on the SQL query and for adding custom columns

* Update list.php

* Fix parameter reference in hook execution

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-27 03:11:21 +02:00
Sai Asish Y
2003f4bf95
fix(ticket): correct misleading MAIN_DISABLE_ALL_MAILS fallback error (#37994) (#37995)
sendTicketMessageByEmail() unconditionally told the admin

  'No mail sent. Feature is disabled by option MAIN_DISABLE_ALL_MAILS'

whenever sendfile() returned false and $mailfile->error was empty.
sendfile() can also fail with an empty error on transient SMTP
errors or connection timeouts, so the message lied whenever
MAIN_DISABLE_ALL_MAILS was not actually configured — confusing
admins about why delivery failed.

Branch on getDolGlobalString('MAIN_DISABLE_ALL_MAILS'):
  * true  -> keep the disabled-feature notice
  * false -> fall through to ErrorFailedToSendMail and a syslog
             entry noting sendfile() returned false with no
             specific error.

Fixes #37994

Signed-off-by: SAY-5 <say.apm35@gmail.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-27 03:11:09 +02:00
Zakaria Boushaba
72306e9e8f
NEW Add default bank account field on third party creation form (#37866)
* Add default bank account field on third party creation form

* Fix fk_account check to handle -1 value

* Update card.php

---------

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-04-26 22:58:48 +02:00
Alexandre SPANGARO
9e4665144c
QUAL - Supplier modules - Split - Update fonction activateModulesRequiredByCountry() (#38003)
* QUAL - Supplier modules - Split - Update fonction activateModulesRequiredByCountry()

* QUAL - Supplier modules - Split - Update function complete_dictionary_with_modules()
2026-04-26 22:25:34 +02:00
Zakaria Boushaba
6e4a5fff4f
NEW: Show name_alias in parentheses in thirdparty dropdown lists (#37997)
Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
2026-04-26 22:23:51 +02:00
Laurent Destailleur
8a93c6215e Trans 2026-04-26 22:20:27 +02:00
Laurent Destailleur
166cef8bc2 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-26 20:36:20 +02:00
Laurent Destailleur
8a38e805e3 Fix missing hook 2026-04-26 20:35:24 +02:00
Laurent Destailleur
383a7a2ef4 Fix remove the install.forced.php 2026-04-26 19:02:54 +02:00
Laurent Destailleur
f6b1262696 Trans 2026-04-26 17:19:37 +02:00
Laurent Destailleur
cc9080c26f NEW Do not show the selection of template mode in creation if there is
one only
2026-04-26 15:18:28 +02:00
Laurent Destailleur
8e68f5ffec Automated merge from 23.0 to develop 2026-04-26 15:12:12 +02:00
Laurent Destailleur
27c86115a9 Fix php compatibility 2026-04-26 15:11:26 +02:00
Laurent Destailleur
a9cf175311 Automated merge from 23.0 to develop 2026-04-26 15:08:15 +02:00
Laurent Destailleur
e97ce1c931 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-04-26 15:07:43 +02:00
Laurent Destailleur
654536a99f Automated merge from 21.0 to 22.0 by tool pullmerge.sh 2026-04-26 15:04:10 +02:00
Laurent Destailleur
e1d309691c Automated merge from 20.0 to 21.0 by tool pullmerge.sh 2026-04-26 15:04:07 +02:00
Laurent Destailleur
8652e9aa24 Fix php compatilbity 2026-04-26 15:03:08 +02:00
Laurent Destailleur
45a7ade38d Clean code 2026-04-26 15:02:11 +02:00
Laurent Destailleur
dbf41437c0 spellcheck war 2026-04-26 14:37:24 +02:00
Laurent Destailleur
b8c89a4921 Fix print 2026-04-26 13:32:18 +02:00
Laurent Destailleur
bc09b3260c Debug RSS generator 2026-04-26 13:27:20 +02:00
Laurent Destailleur
c2c04a1566 Deposit choice must be disabled when creating a credit note. 2026-04-26 12:57:43 +02:00
Laurent Destailleur
fd24008a96 Bette compatibility with small screen 2026-04-25 15:23:56 +02:00
Laurent Destailleur
002eb8db68 Make setuppage simpler 2026-04-25 12:23:47 +02:00
Laurent Destailleur
54602b478b Removed conf $dolibarr_nocache that is useless (CTRL+F5 is enough) 2026-04-25 12:13:25 +02:00
Laurent Destailleur
8ceeddc66f Better compatibility tinymce / ckeditor (position and size) 2026-04-25 12:03:27 +02:00
Laurent Destailleur
098ad8f113 Clean code 2026-04-25 10:14:08 +02:00
Laurent Destailleur
abc17824be Label 2026-04-24 18:56:12 +02:00
Laurent Destailleur
a0688ba8fc Doc 2026-04-24 18:54:18 +02:00
Laurent Destailleur
dd1f83c093 Doc 2026-04-24 18:47:02 +02:00
Laurent Destailleur
700c624c11 Typo 2026-04-24 18:37:27 +02:00