summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2019-06-03 07:43:08 +0000
committersvs-odoo <svs@odoo.com>2019-06-03 07:43:08 +0000
commit042a01d0d6a7a34b8fc6e36ac88db34ec93b528b (patch)
treeb0d23816e75aa255b35db91decdcf26e47de151e
parent9b13494777ef60a757f0ea8ef0dff427ab0f495d (diff)
[FIX] stock: starting demo data inventory
The demo data inventory didn't call the right method (`action_start` instead of `_action_start`), so, if user tried to re-install stock module, the `ensure_once` check will fail when reinstall the demo data. closes odoo/odoo#33811 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
-rw-r--r--addons/stock/data/stock_demo.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/data/stock_demo.xml b/addons/stock/data/stock_demo.xml
index 82ba53ce5e0..f95d8e0936e 100644
--- a/addons/stock/data/stock_demo.xml
+++ b/addons/stock/data/stock_demo.xml
@@ -122,7 +122,7 @@
<field name="location_id" ref="stock_location_components"/>
</record>
- <function model="stock.inventory" name="action_start">
+ <function model="stock.inventory" name="_action_start">
<function eval="[[('state','=','draft'),('id', '=', ref('stock_inventory_0'))]]" model="stock.inventory" name="search"/>
</function>
<function model="stock.inventory" name="action_validate">