Commit graph

153988 commits

Author SHA1 Message Date
Jon Bendtsen
8edded0e14
New show linked member status on Thirdparty card (#38308)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-17 23:59:35 +02:00
Laurent Destailleur
4108a164ee Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-17 23:58:14 +02:00
Laurent Destailleur
f8fba79063 Doc 2026-05-17 23:57:26 +02:00
Laurent Destailleur
95b57550d3 Fix curl direct use is forbidden. Must use getUrlContent(). 2026-05-17 23:55:13 +02:00
Alexandre SPANGARO
23e9dec86e
NEW UIUX Intervention - Merge two-step creation form into a single unified form (#38284)
* UIUX Intervention - Fix: Merge two-step creation form into a single unified form

* CI

* CI
2026-05-17 23:42:31 +02:00
Pichinov-Jose
34aa548ba7
Fix: PDF.js text extraction for PDFs using custom CID fonts (TCPDF etc.) (#38297)
The local document parser in ai_assistant.js calls
getDocument({ data: arrayBuffer }) without cMapUrl and
standardFontDataUrl. As a consequence, PDFs that ship with custom
CID fonts referencing ToUnicode CMaps (which is the norm for files
produced by TCPDF, wkhtmltopdf, iText and most server-side
generators) cannot be decoded properly: PDF.js getTextContent()
returns raw glyph codes and the resulting "text" looks like garbled
base64.

This patch passes the two URLs to getDocument(), pointing them at
the jsdelivr CDN package (cdnjs, which is used elsewhere for the
pdf.js bundle itself, does not distribute the cmaps/ and
standard_fonts/ resource directories).

Tested with a TCPDF-generated invoice that previously returned
unreadable base64-like output. Text now extracts cleanly, including
French accented characters.
2026-05-17 21:50:32 +02:00
Pichinov-Jose
5e3d1a86a0
New: accept api_key in query string for header-less MCP clients (#38292)
The MCP server currently accepts the API key via X-API-Key or
Authorization: Bearer headers only. This works for most MCP clients
(Claude Code CLI, MCP Inspector, mcp-proxy, custom scripts) which let
users configure arbitrary headers.

However, Claude Desktop's "Custom Connectors" feature (currently in
public beta) only exposes OAuth credential fields in its UI. There is
no way for end users to pass a custom X-API-Key or Authorization
header from that client today.

Without a fallback, Claude Desktop users cannot connect to a Dolibarr
MCP server at all (HTTP 401 on every request), even though all other
prerequisites are met.

This patch adds a query-string fallback: ?api_key=XXX or ?key=XXX.
The header-based methods remain preferred and are tried first; the
query string is checked only when no valid header was provided.

Security considerations:
- Query-string credentials appear in webserver access logs and
  potentially in Referer headers. This is documented in an inline
  comment alongside the code.
- Administrators relying on the fallback should restrict access at
  the webserver level (IP allowlist, mTLS, etc.) and/or rotate
  AI_MCP_API_KEY regularly.
- Header-based auth remains the recommended path and is unchanged.

Tested with:
- Claude Desktop Custom Connectors (beta): connection now succeeds
- Claude Code CLI with --header: existing header path unchanged
- curl with both header and query-string: both work
2026-05-17 21:28:05 +02:00
Pichinov-Jose
8fa5e781da
Fix: ToolThirdParty inputSchema JSON Schema 2020-12 compliance (#38290)
Several tool schemas in ToolThirdParty::getDefinitions() declared
'required' => true inside individual properties. This is not valid
JSON Schema draft 2020-12, which requires 'required' to be an array
of property names at the parent object level.

Strict validators (such as Anthropic's Claude API used by Claude
Desktop Custom Connectors and Claude Code) reject these schemas with
HTTP 400 'input_schema is invalid', causing the entire MCP connection
to fail before any tool can be called.

This patch:
- Moves 'required: true' flags from individual properties to a proper
  'required: [...]' array at the parent level
- Adds the missing parent-level required array to get_thirdparty_details
  (which previously had no way to mark id as required in a compliant manner)
- Fixes 5 tools in total: get_thirdparty_details, create_thirdparty,
  update_thirdparty, list_thirdparty_contacts, add_thirdparty_contact

Tested with:
- Claude Desktop Custom Connectors (BETA): tools/list now succeeds
- Claude Code CLI: 32 MCP tools load without 400 errors
2026-05-17 21:24:23 +02:00
Laurent Destailleur
d84479e30f Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-17 18:20:43 +02:00
Laurent Destailleur
57d0be7dc9 Fix packaging 23.0.3 2026-05-17 18:19:40 +02:00
Laurent Destailleur
a7af2b7a69 Fix packaging 2026-05-17 18:10:33 +02:00
Laurent Destailleur
8172b31c56 Debug makepack scripts 2026-05-17 16:31:00 +02:00
Laurent Destailleur
8ecf2f9700 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-17 15:38:08 +02:00
Laurent Destailleur
f5776c68e1 Prepare 23.0.3 2026-05-17 15:34:44 +02:00
Laurent Destailleur
0032e0becc Fix version 2026-05-17 15:29:17 +02:00
Laurent Destailleur
34ab5bcc33 Prepare v23 2026-05-17 15:28:20 +02:00
Laurent Destailleur
468645cee8 Doc 2026-05-17 15:25:53 +02:00
Laurent Destailleur
64c34d47c5 Merge 2026-05-17 15:01:32 +02:00
Laurent Destailleur
194c81ff8f Doc 2026-05-17 14:56:38 +02:00
Laurent Destailleur
5348deb56b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-17 01:27:57 +02:00
Laurent Destailleur
64ef9998aa CSs to avoid text of multiselect on another line than the x. 2026-05-17 01:09:11 +02:00
brice.l
41bfa24f54
Change holiday status update to validation (#38181)
Replaced the update method with validate for holiday status in order to update the ref of the created objects.
2026-05-13 14:48:15 +02:00
Laurent Destailleur
9f6688f369 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-13 14:40:44 +02:00
Laurent Destailleur
45a04e928b Clean code 2026-05-13 14:39:46 +02:00
daraelmin
88f7cb5672
NEW [RGPD] Add personal_data column on llx_extrafields table - Third step of anonymise extrafields #8612 (#38194)
* anonymize extra fields flagged as personal data during GDPR cron

* Fix travis

* Copyright
2026-05-13 14:37:14 +02:00
Alexandre SPANGARO
72ac1a4877
NEW UIUX Category - Add category type in create form (#38206)
* UIIX - Category - Add category type in create form

* Better UX

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-13 14:30:17 +02:00
Alexandre SPANGARO
4babfaf069
NEW Accountancy - Export Quadra - Add option to export thirdparty account only if not existing (#38208)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-13 14:29:02 +02:00
Lenin Rivas
9601ff2fc3
UX for upload files in create ticket (#38202)
Improves user experience and prevents human error when creating tickets; files do not load.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-13 14:28:26 +02:00
Alexandre SPANGARO
0ddc99bc32
NEW Category - API - Add type list (#38207)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-13 14:26:29 +02:00
Laurent Dinclaux
29e01f3aee
FIX #38203 Realign New Caledonia legal forms on ISEE-NC nomenclature (#38204)
PR #37840 added NC legal forms by adapting the French INSEE Niveau II
codes (prefixed with '165' to fit the country id) and inserting GDPL
entries on arbitrary 165XX slots. That approach worked but bypassed the
actual NC reference: the ISEE-NC (Institut de la Statistique et des
Études Économiques de Nouvelle-Calédonie) maintains its own published
"Nomenclature des formes juridiques" (July 2020 edition), which is what
the RIDET business registry actually uses to classify NC entities.

This commit replaces the 46 ad-hoc 165XX codes with the 34 INSEE Niveau
II codes from the ISEE-NC nomenclature (same convention used for France
in the same file), prefixed with '165' to satisfy the table's UNIQUE
(code) constraint, plus one Niveau IV entry for the GDPL (code '6901'
becomes '1656901'), which has no N2 equivalent.

Stripping the '165' prefix from any NC code yields the official
ISEE-NC code.

Source: https://www.isee.nc/definitions-et-methodes/nomenclatures
        ("Nomenclature des formes juridiques", July 2020)

The GDPL (Groupement de Droit Particulier Local) is a NC-specific legal
form established by French law 88-1028 of 9 November 1988, decree
89-570 of 16 August 1989, and reinforced by organic law 99-209 of
19 March 1999, art. 18.

This realignment lands before any Dolibarr release ships the 165XX
codes from PR #37840 (which sits only in develop, no tag contains it
yet), so no upgrade migration is needed on the upstream side.

Fixes #38203

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-13 12:35:08 +02:00
Laurent Destailleur
dcf8812949 ci 2026-05-13 11:45:28 +02:00
Laurent Destailleur
774cd0d194 ci 2026-05-13 11:45:27 +02:00
Laurent Destailleur
b919733173 Doc 2026-05-12 11:29:05 +02:00
Laurent Destailleur
0d24c86dd5 Fix warning 2026-05-12 10:19:39 +02:00
Laurent Destailleur
f78c069201 Doc 2026-05-12 10:17:46 +02:00
Laurent Destailleur
3973b28d34 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-12 03:13:50 +02:00
Laurent Destailleur
a0ae86076b Look and feel v24 2026-05-12 02:53:35 +02:00
Laurent Destailleur
461e65b069 Disable db check 2026-05-11 22:16:54 +02:00
Laurent Destailleur
c0e2c7c8d7 Debug 2026-05-11 21:38:14 +02:00
Laurent Destailleur
df26fb849a Add github action script 2026-05-11 21:14:39 +02:00
Laurent Destailleur
4074aa5bdc Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-11 20:54:57 +02:00
Laurent Destailleur
e2b7286998 Doc 2026-05-11 20:54:03 +02:00
MDW
63833674bb
Qual: Fix PHPStan notices (#38039)
* Qual: Fix PHPStan notices

# Qual: Fix PHPStan notices

Fix multiple PHPStan notices, mostly possibly undefined variable

* Qual: Fix Phan notices

* Qual: Fix Phan notice, $id declared before include

* Fix array initialisations

* Qual: Update phpstan baseline

* Qual: Fix Phan notices

* Qual: Update phan baseline
2026-05-11 20:39:31 +02:00
Jon Bendtsen
b0677c9597
NEW show last 10 events on conference attendee card (#38170)
Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-11 20:36:37 +02:00
Laurent Destailleur
782c674156 Add option to allow registration even if closed. 2026-05-11 19:45:04 +02:00
Laurent Destailleur
3d4b57cc47 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-11 19:12:57 +02:00
Laurent Destailleur
036b6151a7 Trans 2026-05-11 19:10:29 +02:00
Laurent Destailleur
217e83f471 Debug v24 2026-05-11 13:24:09 +02:00
Laurent Destailleur
1df98e3ca9 Debug v24 2026-05-11 13:18:31 +02:00
Regis Houssin
fc3a1cc0f0
FIX #37552 (#38073)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-11 02:16:08 +02:00