[IMP] Thunderbird :- add object search method in module. thunderbird plugin :-if object exists in database then display object in window, add partner selection window and other improvement in plug-in.

bzr revid: ysa@tinyerp.co.in-20100504102437-inauv1je2h4dveuq
This commit is contained in:
Ysa (Open ERP) 2010-05-04 15:54:37 +05:30
parent 41a35042f8
commit dbc6f728d1
2 changed files with 10 additions and 0 deletions

View File

@ -201,4 +201,14 @@ class tinythunderbird_partner(osv.osv):
object.append(obj)
return object
def thunderbird_list_search_object(self,cr,user,vals):
model_obj = self.pool.get('ir.model')
object=''
for obj in vals[0][1].split(','):
if model_obj.search(cr, user, [('model', '=', obj)]):
object += obj + ","
else:
object += "null,"
return object
tinythunderbird_partner()

Binary file not shown.