From 9cf9849c4b9764784b8fc72748d7983072a7017e Mon Sep 17 00:00:00 2001 From: "Kunal Chavda (OpenERP)" Date: Thu, 17 Nov 2011 12:29:53 +0530 Subject: [PATCH] [FIX]Fixed code for showing model name in title of process view. bzr revid: kch@tinyerp.com-20111117065953-pqse8i6mxyptw6g5 --- addons/web_process/static/src/js/process.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web_process/static/src/js/process.js b/addons/web_process/static/src/js/process.js index 2ee04185432..75da78867cf 100644 --- a/addons/web_process/static/src/js/process.js +++ b/addons/web_process/static/src/js/process.js @@ -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,