[FIX] orm: create a foreign key for the function fields of type many2one and store value
[IMP] readability
[MERGE] [FIX] orm: create a foreign key for the function fields of type many2one and store value (opw #604792)