[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) <nim@odoo.com>
This commit is contained in:
Nicolas Vannieuwerburgh
2019-06-13 07:09:42 +00:00
parent 306abd0131
commit 818d34630d
+2
View File
@@ -14,6 +14,8 @@
<!--
Resource: stock.location
-->
</data>
<data noupdate="1">
<record id="stock_location_locations" model="stock.location">
<field name="name">Physical Locations</field>
<field name="usage">view</field>