[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:
parent
41a35042f8
commit
dbc6f728d1
|
@ -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.
Loading…
Reference in New Issue