Updated trigger to meet Dolibarr 3.7 spec