(self, name, id_pref, record)
return self.env['ir.model.data'].create(vals)
It creates an external reference record for the args
It creates an external reference record for the args
It creates an external reference record for the args
def __create_ir_model_data(self, name, id_pref, record):
        """ It creates an external reference record for the args """
        vals = {
            'name': name,
            'model': record._name,
            'module': id_pref,
            'res_id': record.id,
        }
        return self.env['ir.model.data'].create(vals)
def __create_ir_model_data ( self , name , id_pref , record ) : vals = { 'name' : name , 'model' : record . _name , 'module' : id_pref , 'res_id' : record . id , } return self . env [ 'ir.model.data' ] . create ( vals )