Commit Graph

135687 Commits

Author SHA1 Message Date
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
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
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
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
Laurent Destailleur
b73d055cbb Look and feel v24 2026-03-12 13:12:29 +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
f5e7d983b3 css 2026-03-12 11:04:22 +01:00
Laurent Destailleur
d615300b7a Doc 2026-03-12 02:11:48 +01:00
Laurent Destailleur
1ee077f797 CI 2026-03-12 02:02:58 +01:00
Laurent Destailleur
f1433d9234 CI 2026-03-12 01:59:35 +01:00
Laurent Destailleur
ab108d2b80 Look and feel v24 2026-03-12 01:54:19 +01:00
Laurent Destailleur
2176229ffb Look and feel v24 2026-03-12 01:18:10 +01:00
Laurent Destailleur
8bb0a5d5d8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-12 00:27:59 +01:00
Laurent Destailleur
170a782a87 Menu open/close 2026-03-12 00:27:51 +01:00
Laurent Destailleur
1f952b6969 Fix leftmenu 2026-03-12 00:22:32 +01:00
Vincent de Grandpré
5079e49023 Fix #37465 (#37466) 2026-03-12 00:03:05 +01:00
Vincent de Grandpré
89eb9115b3 Fix #37465 (#37466) 2026-03-12 00:02:49 +01:00
Laurent Destailleur
d61ffe5872 CI 2026-03-12 00:00:34 +01:00
splohmer
45d862c0e8 FIX Order API: delete order returns wrong http response in case order could not be deleted (#37472) 2026-03-11 23:44:18 +01:00
Laurent Destailleur
dac22586ba CI 2026-03-11 23:33:46 +01:00
Laurent Destailleur
7762154f6d CI 2026-03-11 23:29:59 +01:00
Laurent Destailleur
6f1b27ddad Fix CI 2026-03-11 23:24:27 +01:00
Laurent Destailleur
432361304a FIX Better compatibility for module using condition object-> in tabs 2026-03-11 23:09:50 +01:00
Laurent Destailleur
f8a37ca704 Import 2026-03-11 20:52:39 +01:00
Laurent Destailleur
59f2abede8 Look and feel v24
Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-11 20:47:00 +01:00
Laurent Destailleur
4522f558df Look and feel v24
Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>
2026-03-11 20:40:45 +01:00