[IMP]Improved code to set message of quick add wizard
bzr revid: cod@tinyerp.com-20140123132241-zfd0e3la6ebrvtd5
This commit is contained in:
parent
9ca1c1394c
commit
0abd187bec
|
@ -3165,6 +3165,7 @@ instance.web.form.CompletionFieldMixin = {
|
|||
instance.web.form.M2ODialog = instance.web.Dialog.extend({
|
||||
template: "M2ODialog",
|
||||
init: function(parent) {
|
||||
this.name = parent.string;
|
||||
this._super(parent, {
|
||||
title: _.str.sprintf(_t("Create a %s"), parent.string),
|
||||
width: 312,
|
||||
|
@ -3172,6 +3173,8 @@ instance.web.form.M2ODialog = instance.web.Dialog.extend({
|
|||
},
|
||||
start: function() {
|
||||
var self = this;
|
||||
var text = _.str.sprintf(_t("You are creating a new %s, are you sure it does not exist yet?"), self.name);
|
||||
$( "p" ).text( text );
|
||||
this.$buttons.html(QWeb.render("M2ODialog.buttons"));
|
||||
this.$("input").val(this.getParent().last_query);
|
||||
this.$buttons.find(".oe_form_m2o_qc_button").click(function(){
|
||||
|
|
|
@ -1925,7 +1925,7 @@
|
|||
</t>
|
||||
<t t-name="M2ODialog">
|
||||
<div>
|
||||
<p class="oe_grey">You are creating a new record, are you sure it does not exist yet?</p>
|
||||
<p class="oe_grey"/>
|
||||
Name: <input class="oe_form_m2o_input_name" type="text"/>
|
||||
</div>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue