diff options
| author | Kunal Chavda (OpenERP) <kch@tinyerp.com> | 2011-11-17 12:29:53 +0530 |
|---|---|---|
| committer | Kunal Chavda (OpenERP) <kch@tinyerp.com> | 2011-11-17 12:29:53 +0530 |
| commit | 9cf9849c4b9764784b8fc72748d7983072a7017e (patch) | |
| tree | b17aa10370d142a564d75b0b29d6c5fa38c2aff5 /addons/web_process/static/src | |
| parent | b3ef9f916238c4c52fe14e13a86943c97b9d088a (diff) | |
[FIX]Fixed code for showing model name in title of process view.
bzr revid: kch@tinyerp.com-20111117065953-pqse8i6mxyptw6g5
Diffstat (limited to 'addons/web_process/static/src')
| -rw-r--r-- | addons/web_process/static/src/js/process.js | 6 |
1 files 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, |
