[FIX] account: recompute invoice residual amount when one of its move lines is totally reconciled
Fixes #3395
[FIX] account: correctly compute residual amount of partially reconciled multi-term invoices.
Fixes #1213
[FIX] ir_model: fix create/update/delete custom fields

Creating custom fields would crash on a model that has a related field without
string.  The crash was caused by the field not being set up, and method
BaseModel._field_create() violating a non-null constraint on the field string.
This has been fixed by setting up fields before updating ir_model_fields.

Deleting a custom field could also cause trouble when that field is inherited
in a child model.  In that case, the registry was simply no longer consistent.
The fix is to reload completely the registry.

The modification of custom fields was not reflected on field objects.  The fix
applies changes on fields before updating columns accordingly.
Merge branch '8.0' of https://github.com/odoo/odoo into 8.0-linux64