On creation of records the client sent empty list for X2M fields which triggers write access errors
Since 521efe70c09b the clients sent an empty list for X2M record fields on creation of records. In modelsql.py a ModelFieldAccess.check call is made for every field passed to the function call. It results in a write access error for field that were left untouched.
The fix I propose is to remove the empty list sent by the client by removing them when computing the value of the record.