Fix: priority is a field smallint.

Conflicts:
	htdocs/comm/action/fiche.php
Qual: Removed a hook that is a duplicate of trigger (CRUD event must be
enhanced by triggers, not hook).
Qual: Delete trigger must be done BEFORE delete of object, not after.
Qual: Mutualize code
Removed some TODO
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
Merge branch 'upstream/develop'