Commit Graph

104 Commits

Author SHA1 Message Date
Laurent Destailleur
c907327e3c Fix removed foreign key not on a unique key 2024-11-21 09:08:54 +01:00
Marc de Lima Lucio
da70b46647 FIX: asset: missing ref_ext field used in CommonObject::isExistingObject() (#31870) 2024-11-17 01:43:43 +01:00
Laurent Destailleur
4f71729311 Fix missing migration on model_pdf 2024-10-17 18:17:12 +02:00
Laurent Destailleur
fed229c984 To get a fix publish late in v19 working in v20 2024-09-01 15:16:10 +02:00
Laurent Destailleur
f82eabbab7 FIX #30513 FIX #30515 2024-08-01 10:48:17 +02:00
Regis Houssin
7be611deb7 FIX Erreur SQL DB_ERROR_1170 BLOB/TEXT column 'url' used in key (#30479)
specification without a key length
2024-07-27 12:37:58 +02:00
Laurent Destailleur
fa700074c9 Fix missing migration due to bad table name in previous versions 2024-07-26 13:31:44 +02:00
HENRY Florian
c7f5be1523 fix: bad table on add column (#30449)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-25 14:30:46 +02:00
Regis Houssin
a1ed02fa6d Fix 20 missing entity filter (#30466)
* FIX missing entity filter for holiday types dict

* FIX wrong table name for field name

* FIX wrong table name (travis error)
2024-07-25 14:30:07 +02:00
Regis Houssin
f7fff4aae7 FIX missing entity field in holiday types dict (#30392)
* FIX missing entity field in holiday types dict

* FIX sql syntax error
2024-07-16 13:36:49 +02:00
Laurent Destailleur
fff875c9e3 Fix bad length for url field for menus 2024-07-15 17:18:43 +02:00
Laurent Destailleur
a4a7ee0805 Debug v20 2024-06-23 23:05:50 +02:00
Frédéric FRANCE
ba461fa2e7 fix migration19.0.0-20.0.0.sql (#30126) 2024-06-22 15:31:33 +02:00
Laurent Destailleur
4b0579366e Fix missing column entity 2024-06-20 15:05:03 +02:00
Laurent Destailleur
3119a29a50 Close #30083 in develop for v20 2024-06-19 14:39:15 +02:00
Laurent Destailleur
564757d379 Missing index 2024-06-16 12:33:28 +02:00
Aloïs Micard
0cfd16d8db Allow tweaking of the index that MySQL use when searching products (#29934)
* Allow tweaking of the index that MySQL use when searching products

Sometimes when working with large dataset with many entities the MySQL engine does not pick-up the right index.
This is especially true when doing a search over the reference because the LIKE '%%' prevent the uk_product_label from being chosen.

This PR aims to improve this situation by doing the following :

- Adding a simple index on entity column.
- Adding an hidden constant to force the index being used when searching products.

Performances over a 8M products dataset shows a reduction of 2/3 execution time.

* Add missing global $conf

* Fix wrong usage of getDolGlobalString()

* Finalise fix

* Add more indexes

* Rework indexes
2024-06-08 19:35:28 +02:00
Maxime Kohlhaas
5c6061ec0a NEW : add indexes on chargesociales table (#29911)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-08 02:34:58 +02:00
HENRY Florian
ebab48ac0e fix: fix SQL new install (#29861)
* fix: SQL fresh install script

* fix: SQL fresh install script

* fix perms files

* fix: travis CI

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-08 00:27:50 +02:00
jyhere
57f35d7774 FIX: default element_type should be 'commande' (e.g Commande::) (#29791)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-03 13:51:36 +02:00
Laurent Destailleur
6e06f179f6 Missing field 2024-06-03 11:50:40 +02:00
Laurent Destailleur
32dc3a885f Fix null value that must be 0 into llx_mrp_production 2024-06-02 18:23:51 +02:00
Laurent Destailleur
aa277f08e8 Fix migration 2024-05-29 17:11:43 +02:00
jyhere
90eb4ad840 FIX: Db error cannot add foreign key constraint on societe_commerciaux table (#29706) 2024-05-21 18:01:13 +02:00
Laurent Destailleur
9f250b580d Doc 2024-05-21 17:17:37 +02:00
Frédéric FRANCE
c7e3b09689 fix migration 19.0.0-20.0.0.sql (#29705)
* fix migration 19.0.0-20.0.0.sql

* Update .travis.yml

* Update 19.0.0-20.0.0.sql

* Update repair.sql
2024-05-21 17:16:50 +02:00
Mohamed DAOUD
b4d3237af3 Add new type -library- to Website page types table (#29720)
* new website page type

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-21 17:14:09 +02:00
Laurent Destailleur
03a0043fac Migration 2024-05-13 19:43:25 +02:00
Laurent Destailleur
0a5745de78 Fix migration 2024-05-13 19:42:55 +02:00
Laurent Destailleur
5586fc8c40 Fix remove orphelin 2024-05-13 19:32:15 +02:00
HENRY Florian
a6caef2dcf NEW : Add default User roles for Thirdparties (#29242)
* firstStepBDD

* revert bad changes

* add new column for user roles in societe_commerciaux table

* merge

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-13 03:25:05 +02:00
Laurent Destailleur
0e34a20c14 Debug v20 2024-05-12 18:44:58 +02:00
Laurent Destailleur
87c445bbf1 Add website page type for ajax 2024-05-12 12:20:00 +02:00
Anthony Berton
64b3b3d59f NEW - Trigger for Knowledge (#29645)
* NEW - Trigger for Knowledge

* Clean

---------

Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-11 20:43:02 +02:00
Laurent Destailleur
d90341af62 More complete db structure for online signature 2024-05-05 01:27:32 +02:00
Laurent Destailleur
ed8e1353ae Removed duplicated column 2024-05-04 19:06:27 +02:00
lamrani abdelwadoud
62f513ea3e add column to expedition table (#29561)
* add column to expedition table

* add to table also and change default value
2024-05-03 13:16:53 +02:00
Laurent Destailleur
c0784ac9d6 Debug v20 2024-04-30 00:28:47 +02:00
Frédéric FRANCE
6da59ca0c0 fix fichinter_rec (#29537)
* fix fichinter_rec

* fix fichinter_rec

* fix fichinter_rec
2024-04-29 22:53:43 +02:00
Eric
ea9a6c0162 NEW add relation type on element_element (#29329)
* add relation type on element_element

* add column on migration 19 -> 20
2024-04-29 11:29:32 +02:00
Laurent Destailleur
9e654e65dd Debug v20 2024-04-29 11:04:19 +02:00
Laurent Destailleur
f156610572 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-27 05:03:15 +02:00
Francis Appels
249ef32b4b Fix new expedition stats for already V20 migrated data (#29432)
* Fix new expedition stats for already V20 migrated

* Try fix phan

* Update expedition.php

* Update expedition.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-24 21:24:35 +02:00
jyhere
149ce11201 NEW: Add shipments and reception stats on product stat tab (#29395)
* ADD: shipments and reception stats on product stat tab

* -FIX: product stats shipping / expedition code was not v20 friendly
-FIX: expeditiondet.elementtype default value should be "commande" (eg. Commande::$element)

* FIX: phan errors

* FIX: phan errors

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-22 15:26:23 +02:00
Laurent Destailleur
612e41a8ca Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/class/commondocgenerator.class.php
	htdocs/core/lib/functions.lib.php
	htdocs/fourn/commande/card.php
	htdocs/install/mysql/migration/19.0.0-20.0.0.sql
	htdocs/product/stock/replenish.php
	htdocs/takepos/invoice.php
2024-04-18 02:48:52 +02:00
Laurent Destailleur
aa4fc45650 Fix regression in v19 migration 2024-04-18 02:41:05 +02:00
atm-adrien
394ed480d3 FIX : Scale for the "second" unit (#29327)
* FIX : Update of the second unit scale

* FIX : Pr returns
2024-04-12 12:21:22 +02:00
Laurent Destailleur
a63614593b Removed deprecated line 2024-04-11 11:04:42 +02:00
Zephyriony
6f524405af QUAL Rename column fk_origin_line on shipment lines into fk_elementdet to match a generic use. (#28989)
* Update expedition.class.php 

Adapting the query and code to the new table format

* Update llx_expeditiondet.sql

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update llx_expeditiondet.sql

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update expedition.class.php

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com>
2024-04-08 12:44:49 +02:00
Regis Houssin
68eb5e409a NEW module user rights enhancement (#29150)
* NEW module user rights enhancement

* FIX syntax error

* FIX fuck

* FIX syntax error

* FIX Add label with the current language (key or with PermissionXXX)

* FIX wrong test

* FIX optimize

* FIX doc

* FIX add class "Rights" for constant

* FIX replace with constants

* FIX missing constant

* FIX wrong check

* TODO sql error : data too long for column 'libelle'

* FIX syntax error

* FIX synax error "the return"... i'll be back

* FIX use operator with double question mark

* FIX add comment

* FIX just remplace integer with constant

* FIX remove unused code

* FIX add an example

* FIX remove the possibility to have entity = 0 (too complicated)

* FIX perms must not be empty

* FIX sql syntax error

* FIX phpstan undefined property DolibarrModules::$modules

* FIX same fix of frederic34

* Update llx_rights_def.sql

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 11:40:02 +02:00