Manage deletable and writable state from ir.rule on the client side
As discussed in https://discuss.tryton.org/t/manage-write-and-delete-rule-on-client-side/2392
I think I found a small optimization that will render the use of the subquery the exception instead of the norm.