From 306abd013103714a8476d60a00cd4499c9a68a8c Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Wed, 12 Jun 2019 14:36:03 +0000 Subject: [PATCH 1/2] [FIX] mail: send same attachment multiple times MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the Discuss app, using Chrome or IE11, try to send the same attachment to different channels. The first attachment is correctly detected but not the next ones. The problem is due to a browser inconsistency, on firefox selecting the same file in an `` triggers the `change` event. This is not the case on Chrome/IE, selecting the same file doesn't triggers an `onchange`. opw-2006647 closes odoo/odoo#34076 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/js/composer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mail/static/src/js/composer.js b/addons/mail/static/src/js/composer.js index 21a4124ee54..8569a686b28 100644 --- a/addons/mail/static/src/js/composer.js +++ b/addons/mail/static/src/js/composer.js @@ -601,6 +601,7 @@ var BasicComposer = Widget.extend({ 'mimetype': '', }); this.set('attachment_ids', attachments); + event.target.value = ""; } }, on_attachment_loaded: function(event, result) { From 818d34630d5a1551c050cf49bd12640f0bf04da3 Mon Sep 17 00:00:00 2001 From: Nicolas Vannieuwerburgh Date: Tue, 9 Apr 2019 06:18:47 +0000 Subject: [PATCH 2/2] [IMP] stock: noupdate on stock location Stock.locations should be in no-update: Limit the impact of recompute fields during the upgrade of stock module. (especially method _compute_product_availability) Limit the impact on migration Method _compute_product_availability is triggered during an upgrade of module and during migrations. This may take a lot of time of big databases closes odoo/odoo#34074 Signed-off-by: Nicolas Martinelli (nim) --- addons/stock/data/stock_data.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/stock/data/stock_data.xml b/addons/stock/data/stock_data.xml index 35f2c008729..e91ce86bc08 100644 --- a/addons/stock/data/stock_data.xml +++ b/addons/stock/data/stock_data.xml @@ -14,6 +14,8 @@ + + Physical Locations view