[FIX]Fixed code for showing model name in title of process view.

bzr revid: kch@tinyerp.com-20111117065953-pqse8i6mxyptw6g5
This commit is contained in:
Kunal Chavda (OpenERP) 2011-11-17 12:29:53 +05:30
parent b3ef9f9162
commit 9cf9849c4b
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ openerp.web_process = function (openerp) {
var self = this;
this.process_check();
this.process_help = this.action ? this.action.help : 'Help: Not Defined';
if(this.model) this.process_model = this.model;
else if(this.action) this.process_model = this.action.res_model;
else this.process_model = this.dataset.model;
this.model = this.dataset.model;
if(this.action) this.process_model = this.action.res_model;
else this.process_model = this.model;
},
process_check: function() {
var self = this,