158
158
(_check_model, 'Invalid model name in the action definition.', ['res_model','src_model'])
161
def get_filters(self, cr, uid, model):
165
act_ids = self.search(cr,uid,[('res_model','=',model),('filter','=',1),('default_user_ids','in',(','.join(map(str,[uid,])),))])
168
my_acts = self.read(cr, uid, act_ids, ['name', 'domain','context'])
171
161
def _views_get_fnc(self, cr, uid, ids, name, arg, context={}):
173
163
for act in self.browse(cr, uid, ids):