Merge pull request #773 from FHenry/develop

[ task #773 ] Add Project document in GED(ECM) modules
Fix: [ bug #729 ] incorrect unpaid invoice list
Merge branch 'develop' of https://github.com/Dolibarr/dolibarr.git into develop
New: Revenue stamps works for invoices
Fix : on a new trigger, using $this but not in a class...
Update modAgenda.class.php

Add export feature of calendar module
Merge pull request #774 from atm-maxime/develop

Fix : on a new trigger, using $this but not in a class...
Merge pull request #775 from defrance69/patch-19

Update modAgenda.class.php
Merge pull request #776 from FHenry/develop

[ task #770 ] Add ODT document generation for Projects module
Fix: move doctemplates in install directory
Merge pull request #777 from FHenry/develop

move doctemplate into install
Fix: [ bug #777 ] Withdrawal receipt set Credited
Update mysql.class.php

Create Table 'type' not supported on recent mysql databases, need to use 'engine' instead 
Merge pull request #778 from simnandez/develop

Fix: [ bug #777 ] Withdrawal receipt set Credited
Merge pull request #779 from defrance69/patch-20

Update mysql.class.php
Use engine instead of type
Fix: broken feature for use hooks with dol_move_uploaded_file method
Fix: broken features due to the removal of the trigger FILE_UPLOAD !
Fix: missing parameter
Fix: wrong var name