'Wrapper on CRUD-type (create or write) on_change'

@api.onchange('use_create', 'use_write', 'ref_object')
def _onchange_crud_config(self):

    if (self.state == 'object_create'):
        self._onchange_create_config()
    elif (self.state == 'object_write'):
        self._onchange_write_config()
