[IMP] change the domain to enable spreadsheet and reindentation in the js file

bzr revid: mva@openerp.com-20120403070752-4gfw1hg3p6ifzmwi
This commit is contained in:
MVA 2012-04-03 09:07:52 +02:00
parent fb989dbfb7
commit 515af1d3d9
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ class config(osv.osv):
Method use with the js to hidde or show the add google doc button
@return : list of configuration ids or false
'''
if self.pool.get('ir.attachment').search_count(cr,uid,[('url','like','https://docs.google.com/document%'),('res_model','=',model),('res_id','=',ids[0])]) !=0:
if self.pool.get('ir.attachment').search_count(cr,uid,[('url','like','https://docs.google.com/%'),('res_model','=',model),('res_id','=',ids[0])]) !=0:
return False
else:
return True

View File

@ -13,7 +13,7 @@ openerp.google_docs = function(instance, session) {
var config = new instance.web.DataSet(this, 'google.docs.config', this.view.dataset.get_context());
config.call('get_config', [[this.view.datarecord.id],this.view.dataset.model,this.view.dataset.get_context()], function(r) {
if (r == false){
$('.oe_google_docs_text_button',this.$element).hide();
$('.oe_google_docs_text_button',this.$element).hide();
}
});
},