summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorChirag Dodiya (OpenERP) <cod@tinyerp.com>2014-04-30 11:31:01 +0200
committerRichard Mathot (OpenERP) <rim@openerp.com>2014-04-30 11:31:01 +0200
commit7dedde91eff41752724efcbbefa5e0ca7e1ae3e0 (patch)
tree80b21c066b09168bb3340ee6a16915c5ae73f954 /addons/web/static/src
parent162fff3bfe139b42451dbddb1a096da23d56dca5 (diff)
parent03cfbf0f469ef174b6b0c26e1830d5f2e97b987c (diff)
[MERGE][IMP] Quick add wizard (form view): usability
bzr revid: rim@openerp.com-20140430093101-t5b1v42zuaq1nyye
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_form.js5
-rw-r--r--addons/web/static/src/xml/base.xml7
2 files changed, 8 insertions, 4 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index cbd74105aba..e14d60747ed 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -3356,13 +3356,16 @@ 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("Add %s"), parent.string),
+ title: _.str.sprintf(_t("Create a %s"), parent.string),
size: 'medium',
});
},
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);
+ this.$("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(){
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 24c5ba625b0..49c40579f27 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1948,13 +1948,14 @@
</t>
<t t-name="M2ODialog">
<div>
+ <p class="oe_grey"/>
Name: <input class="oe_form_m2o_input_name" type="text"/>
</div>
</t>
<t t-name="M2ODialog.buttons">
- <button class="oe_form_m2o_qc_button oe_button oe_highlight">Quick Add</button>
- <button class="oe_form_m2o_sc_button oe_button">Add All Info...</button>
- <button class="oe_form_m2o_cancel_button oe_button">Cancel</button>
+ <button class="oe_form_m2o_qc_button oe_button oe_highlight">Create</button>
+ <button class="oe_form_m2o_sc_button oe_button">Create and edit</button> or
+ <button class="oe_form_m2o_cancel_button oe_button oe_link"><span>Cancel</span></button>
</t>
<t t-name="FieldMonetary" t-extend="FieldChar">
<t t-jquery="t:first" t-operation="before">