Allow to delete with a domain
The ModelStorage.delete could be improved to allow to delete with a domain instead of a list of ids.
So to keep the backward compatible behaviour here is my proposal.
We change the API for: delete(cls, records, domain=None)
The behaviour of delete will be to use construct a where clause with this semantic: WHERE id IN <records> OR <domain>
This will allow to keep the same behaviour when called with a list of records or an empty list.
But also works with an empty list and a domain.