'.. deprecated:: 9.0
Use the <record> notation with ``ir.values`` as model instead.'

def _tag_ir_set(self, rec, data_node=None, mode=None):

    if (self.mode != 'init'):
        return
    res = {}
    for field in rec.findall('./field'):
        f_name = field.get('name', '').encode('utf-8')
        f_val = _eval_xml(self, field, self.env)
        res[f_name] = f_val
    ir_values = self.env['ir.values']
    for model in res['models']:
        res_id = False
        if isinstance(model, (list, tuple)):
            (model, res_id) = model
        if (res['key'] == 'default'):
            ir_values.set_default(model, field_name=res['name'], value=res['value'], condition=res['key2'])
        elif (res['key'] == 'action'):
            ir_values.set_action(res['name'], action_slot=res['key2'], model=model, action=res['value'], res_id=res_id)
