[IMP] website_sale: auto-selects product price on click in edition

This commit is contained in:
Kinjal Mehta
2017-06-20 12:48:29 +02:00
committed by qsm-odoo
parent 8f099d4528
commit 402be8cd92
@@ -29,6 +29,10 @@ if(!$('.js_sale').length) {
return $.Deferred().reject("DOM doesn't contain '.js_sale'");
}
$('.oe_website_sale').on('click', '.oe_currency_value:o_editable', function (ev) {
$(ev.currentTarget).selectContent();
});
options.registry.website_sale = options.Class.extend({
start: function () {
var self = this;