[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:
parent
fb989dbfb7
commit
515af1d3d9
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue