Commit graph

154095 commits

Author SHA1 Message Date
dependabot[bot]
78d1189ba7
Bump actions/github-script from 7 to 9 (#38319)
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 9.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v9)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-21 22:01:06 +02:00
sonikf
eb01da927b
fix translation (#38335) 2026-05-21 21:54:58 +02:00
MDW
bd1abf66e4
qual: Update return type annotations in Projects::getRoles() (#38338)
The return type annotations for the method Projects::getRoles() have been updated from array<object> to list<string> to better reflect the actual return type. This change was also reflected in the phpstan-baseline.neon file to maintain consistency.
2026-05-21 21:54:31 +02:00
MDW
0a64b8b47d
Qual: Update parameter type, fixes PHPStan, Phan (#38339)
# Qual: Update parameter type, fixes PHPStan, Phan

Updates the _cleanObjectDatasRate method parameter types.
2026-05-21 21:53:20 +02:00
Laurent Destailleur
528737daab FIX out of dynamically recalculated unit price inc tax was missing
relative discount.
2026-05-21 21:22:07 +02:00
Laurent Destailleur
5aefaae85a css 2026-05-21 21:11:32 +02:00
Laurent Destailleur
56009b9bf8 NEW Add count tool for AI 2026-05-21 19:33:50 +02:00
Laurent Destailleur
c3e65193df NEW Can edit the VAT code exemption. 2026-05-21 18:17:16 +02:00
Laurent Destailleur
19780ab24e NEW Can edit the VAT code exemption. 2026-05-21 18:00:01 +02:00
Laurent Destailleur
f2ebaf4cfc Debug v24 2026-05-21 14:49:03 +02:00
Laurent Destailleur
4fd5b58604 With MAIN_APPLY_DISCOUNT_ON_UNIT_PRICE_THEN_ROUND_BEFORE_MULTIPLICATION_BY_QTY,
we round the discount on unit price before multiplication by qty
2026-05-21 03:26:21 +02:00
Laurent Destailleur
924bebbcc7 Clean files 2026-05-20 19:10:31 +02:00
Laurent Destailleur
9f6fe9b665 Update conf 2026-05-20 18:55:11 +02:00
Laurent Destailleur
2c7d95eafe Clean file 2026-05-20 18:40:04 +02:00
Laurent Destailleur
eae494af73 Automated merge from 23.0 to develop 2026-05-20 17:53:51 +02:00
Laurent Destailleur
5efc5e85a9 Fix tags 2026-05-20 17:29:46 +02:00
Laurent Destailleur
38409ec7c0 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-05-20 17:27:41 +02:00
Laurent Destailleur
48cca7954c Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-05-20 17:09:31 +02:00
Laurent Destailleur
3bcbb55e7b Automated merge from 20.0 to 21.0 by tool pullmerge.sh 2026-05-20 17:03:28 +02:00
Laurent Destailleur
3fde18d7f7 Automated merge from 19.0 to 20.0 by tool pullmerge.sh 2026-05-20 17:00:35 +02:00
Laurent Destailleur
0168bdfeb1 Automated merge from 18.0 to 19.0 by tool pullmerge.sh 2026-05-20 16:59:16 +02:00
Laurent Destailleur
8e78187c2d Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-05-20 16:51:35 +02:00
Laurent Destailleur
03b9f92359 Prepare 22.0.5 2026-05-20 16:51:10 +02:00
Laurent Destailleur
547303c6c8 NEW Add section to help to find einvoice modules on setup page for ome
countries.
2026-05-20 16:23:06 +02:00
Laurent Destailleur
6766c6a74f Clean setup 2026-05-20 01:29:26 +02:00
Laurent Destailleur
3e3ca74a67 Debug AI assistant and MCP server 2026-05-20 01:27:19 +02:00
Laurent Destailleur
71daa93adc Split AI_MCP_ENABLED into AI_MCP_ENABLED + AI_ASSISTANT_ENABLED 2026-05-20 00:05:39 +02:00
Laurent Destailleur
8ee92ab3cd Better log message 2026-05-19 22:07:43 +02:00
Laurent Destailleur
7179cc9368 Add stats page on list (product menu) 2026-05-19 20:46:24 +02:00
Laurent Destailleur
ece923b8dc Add stats page on list 2026-05-19 20:07:11 +02:00
Laurent Destailleur
efbedff0f2 NEW Add button more on membership stat page 2026-05-19 18:30:38 +02:00
Laurent Destailleur
0fc4a4abe4 Move error string 2026-05-19 14:08:05 +02:00
Laurent Destailleur
bc7ca4a3cb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-19 13:51:18 +02:00
Laurent Destailleur
77bc9cf3a9 Update gitignore 2026-05-19 13:51:07 +02:00
Laurent Destailleur
76c18d6866 Clean setup page 2026-05-18 22:57:48 +02:00
Laurent Destailleur
574128a385 CSS 2026-05-18 22:44:00 +02:00
Laurent Destailleur
4b06f04950 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-18 22:31:47 +02:00
Laurent Destailleur
d2b524985a Clean code 2026-05-18 22:30:51 +02:00
Laurent Destailleur
1c236153a2 Clean code 2026-05-18 22:15:40 +02:00
Pichinov-Jose
74fc27b68b
New: open AI Assistant in a popup overlay from top-toolbar icon (#38311)
Per maintainer feedback on #38307: "adding a popup (without leaving
current page) is better than opening a complete page".

The AI Assistant top-toolbar icon (added in develop by e735bed1 via
top_menu_ai() in main.inc.php) is a plain <a href> that navigates
the user away from whatever page they were on. This patch makes the
icon open the Assistant in a popup overlay instead, so the user
keeps their working context while interacting with the assistant.

Approach:

Reuses the existing Dolibarr core helper dolButtonToOpenUrlInDialogPopup()
(htdocs/core/lib/functions.lib.php) which:

  - Builds an <a> with accesskey, title, and an icon
  - On click, injects an <iframe src="$url" width="100%" height="98%">
    into a hidden <div id="idfordialog$name">
  - Opens the div as a jQuery UI dialog: modal:true, width:'80%',
    height: window.innerHeight - 150
  - Auto-appends "dol_hide_topmenu=1&dol_hide_leftmenu=1&dol_openinpopup=$name"
    to the URL so the embedded page renders without the surrounding
    top/left chrome (Dolibarr core handles these URL params in
    main.inc.php; no change needed to /ai/assistant/index.php)
  - Falls back gracefully to target="_blank" when JavaScript is off

Zero changes are needed to /ai/assistant/index.php itself: the
dol_openinpopup / dol_hide_topmenu / dol_hide_leftmenu URL params
are already handled generically by main.inc.php (the same way
modulebuilder, ECM and other popup-friendly screens are loaded).

Visible behaviour:

- Click on the AI top-toolbar icon -> Assistant opens centered as
  a modal dialog over the current page; the chat UI loads inside
  the iframe; closing the dialog returns the user to their original
  page with no navigation.
- Accesskey 'a' (unchanged from e735bed1) still focuses/triggers the
  icon.
- Tooltip switches from "AI (Ctrl+Alt+a)" to the localized
  "AI Assistant" string (the helper uses $label for both the title
  attribute and the dialog title -- one string for both is the
  helper's design).

Other top_menu_* icons (bookmark, quickadd, search, import) are
unchanged.

Tested:
- Click icon -> popup opens, Assistant chat works inside iframe.
- Close dialog -> back on the original page with no navigation.
- JavaScript disabled -> link degrades to opening in a new tab
  (target="_blank"), Assistant page renders normally with its full
  chrome.
- Accesskey Ctrl+Alt+a still triggers the icon.
2026-05-18 22:04:43 +02:00
Laurent Destailleur
195d700294 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-05-18 22:00:32 +02:00
Laurent Destailleur
8815996b9c FIX #36777 2026-05-18 22:00:02 +02:00
MDW
18b7fa0fd4
FIX: Add Ghostscript installation and caching for Windows CI (#38325)
* Exclude doctemplates as DB dependencies

* FIX: Add Ghostscript installation and caching for Windows CI

# FIX: Add Ghostscript installation and caching for Windows CI

Ghostscript is necessary for one of the tests that converts an image into a PDF.
This commit adds the necessary steps to install Ghostscript and cache it for the Windows CI workflow.
2026-05-18 19:44:48 +02:00
VIAL-GOUTEYRON Quentin
110b35cba6
NEW Specify If the Object Manages Lines for Module Builder (#32664)
* Specify If the Object Manages Lines for Module Builder

* Update htdocs/modulebuilder/index.php

* Update myobject.class.php

* Update myobject.class.php

* Update myobject.class.php

* Update myobject.class.php

* Update myobject.class.php

* Update myobject.class.php

* Update myobject.class.php

* Update myobject.class.php

* Fix modulebuilder CI issues

* Fix Phan PhanUndeclaredProperty errors on PR #32664

- pdf_standard_myobject: add @phan-suppress-current-line on situation_percent,
  localtax2_tx, localtax1_type, localtax2_type, vat_src_code, pagebreak
  (MyObjectLine template class does not declare these inherited properties)
- doc_generic_project_odt: replace fk_soc with socid (correct PHP property;
  fk_soc is the DB column name, Project::fetch() maps it to $this->socid)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-05-18 16:13:35 +02:00
Laurent Destailleur
7b1a93b1c2 Clean code 2026-05-18 14:03:44 +02:00
Laurent Destailleur
629c460a3a Fix duplicate css when duplicate events 2026-05-18 13:43:53 +02:00
Laurent Destailleur
1f021efaed Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-05-18 13:05:54 +02:00
Laurent Destailleur
6be5bac0ed Clean code 2026-05-18 13:05:07 +02:00
Jon Bendtsen
40b4e8744f
Fix #37675 API Post eventattendee sets ref to same as id (#38274)
* Fix #37675 API Post eventattendee sets ref to same as id

* Move empty ref check after fetch #38274

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-18 12:07:50 +02:00
Jon Bendtsen
c8bfa410e6
FIX #37356 Category Products not listed (#38264)
* FIX #37356 Category Products not listed

* Will now show product and service categories when 1 or both modules for products or services are enabled #38264

---------

Co-authored-by: Jon Bendtsen <jonbendtsen@jonb.dk>
2026-05-18 11:36:30 +02:00