fixes in new button in listing
This commit is contained in:
parent
1c17d4f69f
commit
c5fc055928
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue