[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>
This commit is contained in:
svs-odoo
2019-06-03 07:43:08 +00:00
parent 9b13494777
commit 042a01d0d6
+1 -1
View File
@@ -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">