Fix: It seems foreign key is not deleted sometimes. To be sure, we force
delete also at end.
Merge pull request #683 from FHenry/3.3

Fix [ bug #733 ]
Fix: Add option MAIN_USE_LOCALTAX_TYPE_7 to hide localtax 7 because
type 7 need to be implemented at invoice level, not line level. This
disable the feature (we need better implementation) without removing it
for people using it in the past.
Fix: Update button does not appear
Fix: trans
Fix: select lost if error
Fix: Update of type was not working.
Fix: try to fix regression, stored the last id created in a session
variable in order to be used to find out information in the "ref_ext" in
order to differentiate automatic actions.
Fix: to force id field name
Fix [ bug #736 ]
rool back changes
Fix [ bug #736 ]