fixes in new button in listing

This commit is contained in:
Anand Doshi 2013-01-27 17:49:18 +05:30
parent 1c17d4f69f
commit c5fc055928
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ wn.ui.Listing = Class.extend({
if(wn.boot.profile.can_create.indexOf(this.opts.new_doctype)==-1) {
this.opts.new_doctype = null;
} else {
this.opts.new_doctype = wn._(this.opts.new_doctype);
this.opts.new_doctype = this.opts.new_doctype;
}
}
if(!this.opts.no_result_message) {

View file

@ -12,7 +12,7 @@ wn.views.ReportViewPage = Class.extend({
this.docname = docname;
this.page_name = wn.get_route_str();
this.make_page();
var me = this;
wn.model.with_doctype(this.doctype, function() {
me.make_report_view();