152641 Commits

Author SHA1 Message Date
Laurent Destailleur
5d83e6feb3 Automated merge from 23.0 to develop 2026-03-12 23:40:28 +01:00
Laurent Destailleur
b9f5895c68 Automated merge from 22.0 to 23.0 by tool pullmerge.sh 23.0.1 2026-03-12 23:40:02 +01:00
Laurent Destailleur
c76d781e30 Automated merge from 21.0 to 22.0 by tool pullmerge.sh 2026-03-12 23:36:15 +01:00
Laurent Destailleur
488366cf06 Automated merge from 20.0 to 21.0 by tool pullmerge.sh 2026-03-12 23:36:12 +01:00
Laurent Destailleur
584e103ebf Automated merge from 19.0 to 20.0 by tool pullmerge.sh 2026-03-12 23:35:37 +01:00
Laurent Destailleur
058c8ee9b0 Automated merge from 18.0 to 19.0 by tool pullmerge.sh 2026-03-12 23:26:55 +01:00
Laurent Destailleur
f86955fcf9 Automated merge from 17.0 to 18.0 by tool pullmerge.sh 2026-03-12 23:15:12 +01:00
Vincent Maury
1582f1afb9 Fix Inventory bugs #33192 and #35207 (#37405)
* Fix Inventory bugs #33207 and #33292 : when click on "validate and generate movements" quantities not still recorded are not recorded

* Fix Inventory bugs #33207 and #33292 : when click on "validate and generate movements" quantities not still recorded are not recorded

* Fix Inventory bugs #33207 and #33292 : when click on "validate and generate movements" quantities not still recorded are not recorded

---------

Co-authored-by: vmaury <vmaury@vmaury-Lafite-Pro-16-AMD>
2026-03-12 23:10:36 +01:00
kkhelifa-opendsi
5475df50bf NEW: add new hook in BonPrelevement::EnregDestinataireSEPA() function (#37419)
* NEW: add new hook in BonPrelevement::EnregDestinataireSEPA() function

* Fix test CI

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 22:53:58 +01:00
Laurent Destailleur
cbf2adc238 CI 2026-03-12 21:58:42 +01:00
Laurent Destailleur
093d9634c8 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-12 21:53:05 +01:00
Laurent Destailleur
0e62a44ea1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-12 21:49:14 +01:00
Laurent Destailleur
a12da79340 CI 2026-03-12 21:49:05 +01:00
Laurent Destailleur
f23b1801e5 Revert "Revert "Fix ticket categories dictionay (#37434)""
This reverts commit ff204097e3.
2026-03-12 21:42:20 +01:00
Zakaria Boushaba
c057d46a4c NEW|New Add hook selectForFormsListUrl in Form::selectForForms (#37447)
* Feat: add hook selectForFormsListUrl to allow modules to modify AJAX URL params

* Add

---------

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 21:41:08 +01:00
Frédéric FRANCE
677ec352d9 add notrigger in setMultilangs of product.class.php (#37478)
* add notrigger in setMultilangs of product.class.php

* Update product.class.php

* Update product.class.php

* Update product.class.php

* add notrigger
2026-03-12 21:39:58 +01:00
Laurent Destailleur
531c55a9fd NEW Show example of ai models in setup 2026-03-12 21:13:49 +01:00
Laurent Destailleur
86f08b429b css 2026-03-12 19:19:45 +01:00
Laurent Destailleur
f188ad64eb Picto for shared doc 2026-03-12 17:11:05 +01:00
Laurent Destailleur
30e28d5f8a CI 2026-03-12 16:37:01 +01:00
Laurent Destailleur
ffcbe0263d Look and feel v24 2026-03-12 16:11:26 +01:00
Guido Schratzer
95579849dc FIX: filling of field amount_main_currency for foreign m… (#37439)
* FIX: Issue #37425 filling of field amount_main_currency for foreign money accounts

The parameter amount_main_currency (argument #13 of addline()) was previously
filled even when the bank account was already using the company main currency.

This caused the field amount_main_currency to be populated incorrectly for
transactions that were not foreign currency operations.

The logic has been updated so that amount_main_currency is only filled when the
transaction involves a foreign currency account. For accounts already using the
company main currency, the value is now left NULL as expected.

This aligns the behavior with the intended usage of addline() and prevents
incorrect data in bank transaction records.

* FIX: Issue #37425 filling of field amount_main_currency for foreign money accounts
transfer.php: PhanTypeMismatchArgument: Argument 4 ($amount) is price2num((-1 * (float)($amount[$n]))) of type string but \Account::addline() takes float defined at htdocs/compta/bank/class/account.class.php:611
CI-PULL-REQUEST / phan / Run phan
Check warning on line R189
Check warning:
transfer.php: PhanTypeMismatchArgument: Argument 13 ($amount_main_currency) is $amount_main_currency_from of type ?string but \Account::addline() takes ?float defined at htdocs/compta/bank/class/account.class.php:611
CI-PULL-REQUEST / phan / Run phan

* declare dateo

* declare of variables before action script

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 14:58:58 +01:00
Laurent Destailleur
904f201de3 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-03-12 14:58:42 +01:00
Laurent Destailleur
94d7642b2f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-12 14:47:43 +01:00
Laurent Destailleur
69f75928e7 CI 2026-03-12 14:47:18 +01:00
boudet jean pascal
a4b8cb7008 NEW : adds visual indicators on the Sales Order card (commande/card.php) (#37460)
* This PR adds visual indicators on the Sales Order card (commande/card.php) to quickly identify if an order or its lines are shippable based on current stock levels. This feature mirrors the existing functionality found in the Orders List, bringing valuable logistics information directly into the Order Card context.

Key Features:
Global Shippable Status: Adds a "shippable" icon (Truck) next to the "Planned delivery date" field.

Logic: Checks if all products in the order are in stock.

Condition: Visible only if Stock and Shipment modules are enabled, a delivery date is set, and the order is validated.

Visual: Green icon if fully shippable, Red/Warning if stock is insufficient. Includes a detailed tooltip.

Per-Line Shippable Status: Adds a new "Shippable" column in the product lines table.

Logic: Compares real stock vs. remaining quantity to ship for each line.

Visual: Displays a green/red status bullet (standard Dolibarr status icons) directly in the line.

Implementation: Done by updating objectline_title.tpl.php and objectline_view.tpl.php with specific checks for the commande element.

New Configuration Option: Added a hidden option ORDER_DISABLE_SHIPPABLE_ICON_ON_CARD to disable this feature if needed (configurable in Home > Setup > Other Setup or via module settings).

Backend Optimization: Added a new method getShippableInfos() in commande.class.php to centralize the stock check logic (optimized with stock caching to avoid N+1 query issues).

Technical Details:
Modified Files:

commande/card.php: Integration of the global icon next to the date.

commande/class/commande.class.php: Added getShippableInfos() method.

core/tpl/objectline_title.tpl.php: Added "Shippable" column header (conditional for Orders).

core/tpl/objectline_view.tpl.php: Added "Shippable" column cell content (conditional for Orders).

Performance: Logic uses static caching for product stock to minimize database impact when rendering large orders.

* missed element

* img_picto

* phan add

* load_stock and global $i

* phan

* ci retour

* change icon
change phan directive

* phan

* Fight against optionflation

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Change condition for displaying shippable icon

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Change condition for displaying shippable status icon

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Update card.php

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Update shippable status condition in template

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

* Update shippable status condition logic

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

---------

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 14:42:31 +01:00
Maxime Kohlhaas
e29b741958 Fix : disabled extrafield should not appear on PDF (#37442) 2026-03-12 14:40:36 +01:00
Francis Appels
b02f1a4ebf NEW: Show bom net needs treeview by line position. (#37459)
* New show bom net needs treeview by line position.

* bom_net_needs fix level is also position.

* bom_net_needs position need numeric sort.

* Fix sorting string

* Fix warning

* fix stan/phan

* Fix stan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 14:38:31 +01:00
John BOTELLA
30c7e86687 Fix unique db lang name generator (#37467)
* fix_unique_db_lang_name

* Fix: add clear all db

* Fix: add clear all db

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 14:37:31 +01:00
Laurent Destailleur
70346cb3bb Move permission ticket->manage as an advanced permission 2026-03-12 14:35:26 +01:00
Laurent Destailleur
ff204097e3 Revert "Fix ticket categories dictionay (#37434)"
This reverts commit a9db2f6dba.
2026-03-12 14:14:17 +01:00
nateogroup-antoine
e62d193997 FIX deprecated statut variable and reload object (#37449)
* Fixed a bug that initialized the deprecated status variable without initializing the new status variable.

Upon quote approval, the interface is based on “status” rather than “statut.” The approved quote still had the edit button visible.

* Fix reload object if not MAIN_DISABLE_PDF_AUTOUPDATE after addline or updateline

Fix reload object if not MAIN_DISABLE_PDF_AUTOUPDATE after addline or updateline

* Update card.php
2026-03-12 14:04:59 +01:00
SAINT-PATRICE
b1e693a1ac Update contratligne.class.php for Postgres active_line and close_line (#37477)
* Update contratligne.class.php for Postgres

* Update contratligne.class.php close_line for postgres
2026-03-12 14:02:27 +01:00
Mohamed DAOUD
f0d6ae5b3f NEW: Update ticket read date when status changes (#37470)
* update read date on status change

* Fix CI

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 14:01:51 +01:00
kkhelifa-opendsi
f01cfa9fad FIX : Fix SQL request for fix duplicate accounting account and remove wrong and obsolete SQL request who break the accounting account when we launch repair with multi-entities (#37430)
* FIX : Fix SQL request for fix duplicate accounting account and remove wrong and obsolete SQL request who break the accounting account when we launch repair with multi-entities

* Same fix for migration 8.0 to 9.0

* Add removed sql needed
2026-03-12 13:57:57 +01:00
Juan Pablo Farber
502bc82815 QUAL Replace $_REQUEST superglobals with GETPOST() in projet and compta/tva (#37456)
* Fix: replace $_REQUEST with GETPOST() in projet/note.php

Use GETPOST('mode', 'alpha') instead of direct $_REQUEST['mode']
access to follow Dolibarr coding conventions for input sanitization.

* Fix: replace $_REQUEST with GETPOSTINT() in compta/tva/clients.php

Use GETPOSTINT('extra_report') instead of direct $_REQUEST access
to follow Dolibarr coding conventions for input sanitization.
2026-03-12 13:51:23 +01:00
Juan Pablo Farber
5e8bb7be8e QUAL Replace $_REQUEST superglobals with GETPOST() in projet and compta/tva (#37456)
* Fix: replace $_REQUEST with GETPOST() in projet/note.php

Use GETPOST('mode', 'alpha') instead of direct $_REQUEST['mode']
access to follow Dolibarr coding conventions for input sanitization.

* Fix: replace $_REQUEST with GETPOSTINT() in compta/tva/clients.php

Use GETPOSTINT('extra_report') instead of direct $_REQUEST access
to follow Dolibarr coding conventions for input sanitization.
2026-03-12 13:50:58 +01:00
Juan Pablo Farber
93c6cb922c QUAL Add missing Spanish (es_ES) translations (#37457)
* QUAL Add missing Spanish translations in es_ES locale

Add missing keys in ticket.lang, agenda.lang and errors.lang:
- Ticket email notification template keys
- Auto-read on assign keys
- ManualActions key in agenda
- OIDC user auto-creation messages
- ErrorFailedToGetTokenFromClientIdAndSecret

* QUAL Fix untranslated key in es_ES errors.lang

Translate UserDoesNotHaveRightsToChangeHisPassword key that was
left in English in the Spanish locale file.
2026-03-12 13:50:19 +01:00
Zakaria Boushaba
fd71eba41e FIX: Fix mandatory custom fields JS validation in printCommonFooter (#37469)
* Fix mandatory fields JS: use name selector instead of id, fix undefined buttonName on create, fix HTML entities in alert message

* Update alert message for empty field validation

---------

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-12 13:47:12 +01:00
lvessiller-opendsi
ea60298eeb FIX show export full documents checkbox on change format in accountancy export (#37468)
* FIX show export full documents checkbox on change format in accountancy export

* FIX remove unused var
2026-03-12 13:46:23 +01:00
Laurent Destailleur
6a70193549 CI 2026-03-12 13:27:43 +01:00
Laurent Destailleur
b73d055cbb Look and feel v24 2026-03-12 13:12:29 +01:00
Laurent Destailleur
3016301ae8 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2026-03-12 11:40:07 +01:00
Laurent Destailleur
2065dee731 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2026-03-12 11:36:14 +01:00
Laurent Destailleur
6689f5bb52 Test 2026-03-12 11:36:05 +01:00
Laurent Destailleur
d8bce4e1e4 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-12 11:16:17 +01:00
Laurent Destailleur
cd0a4016ff Fix regressions 2026-03-12 11:12:35 +01:00
Laurent Destailleur
ad16be87eb Fix sql 2026-03-12 11:05:50 +01:00
Laurent Destailleur
8172916804 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-12 11:04:38 +01:00
Laurent Destailleur
f5e7d983b3 css 2026-03-12 11:04:22 +01:00