add refext into fecth product
Merge pull request #1887 from FHenry/3.5

add refext into fecth product
Save some usefull cleaning requests into repair.sql
Fix: remove hook restriction !
Merge branch '3.5' of git@github.com:Dolibarr/dolibarr.git into 3.5
Fix: remove hook restriction !
Fix: Restore sort feature. Still did not see why previous commit is a
bug fix of dolibarr bug.
Fix: Invoices payments may be older than invoices
Fix: Invoices payments may be older than invoices. fr and es trans
Fix: Bad calculation of total
Fix: Warning message not translated
Merge remote-tracking branch 'origin/3.5' into 3.6

Conflicts:
	htdocs/core/lib/functions2.lib.php
	htdocs/langs/en_US/errors.lang
	htdocs/product/class/product.class.php
Merge remote-tracking branch 'origin/3.6' into develop

Conflicts:
	htdocs/.gitignore
	htdocs/core/lib/functions2.lib.php
	htdocs/install/mysql/migration/repair.sql
	htdocs/langs/en_US/errors.lang