From 7bee068a0fb1d249843b04c087d62661d8b02d88 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 15 Oct 2018 09:50:26 +0000 Subject: [PATCH] [FIX] sale: Sale channels duplicate field Steps to reproduce the bug: - In CRM, create an new Sales Channel - Go to Reporting/Sales Channels - Click in the new channel on "Click to define a target" Bug: Two input fields called "Set an invoicing target" appeared in the new channel opw:1889406 closes odoo/odoo#27781 --- addons/sale/static/src/js/sale.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale/static/src/js/sale.js b/addons/sale/static/src/js/sale.js index 289d26ecae3..1121a38501a 100644 --- a/addons/sale/static/src/js/sale.js +++ b/addons/sale/static/src/js/sale.js @@ -21,8 +21,8 @@ KanbanRecord.include({ ev.preventDefault(); this.$target_input = $(''); - this.$('.o_kanban_primary_bottom').html(this.$target_input); - this.$('.o_kanban_primary_bottom').prepend(_t("Set an invoicing target: ")); + this.$('.o_kanban_primary_bottom:last').html(this.$target_input); + this.$('.o_kanban_primary_bottom:last').prepend(_t("Set an invoicing target: ")); this.$target_input.focus(); var self = this;