Add sign function to SQLite backend

review3411002
Better guess "selection_change_with" attribute

Testing on the instance for Selection field is not enough because some field
selection could come from a Function field.
So it is better to use a duck typing style in this case.

issue3649
review3451002
Improve module buttons

- Enforce origin state of modules
- Speedup on_write computation
- Better usage of record cache

review3361002
Fix error message "foreign_model_exist"

The value argument has no meaning for this error message and the way it is
retreived in changeset dbbbe6cae2bb is buggy.

review3381002