mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
This has always been wrong on v8, but because of the very obscure odoo/odoo#5797, this seemed to work every time we had single-step reception. Please note that this block of XML is noupdate, so for existing installations you need to change the parent of the reservation location to something outside your warehouses manually. Incidentally, this makes the branch green independently of odoo/odoo#5797.
27 lines
1.0 KiB
XML
27 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="1">
|
|
<record id="stock_location_reservation" model="stock.location">
|
|
<field name="name">Reservation Stock</field>
|
|
<field name="location_id" ref="stock.stock_location_locations"/>
|
|
</record>
|
|
|
|
|
|
<!-- Release the stock.reservation when the validity date has
|
|
passed -->
|
|
<record forcecreate="True" id="ir_cron_release_stock_reservation" model="ir.cron">
|
|
<field name="name">Release the stock reservation having a passed validity date</field>
|
|
<field eval="True" name="active" />
|
|
<field name="user_id" ref="base.user_root" />
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">days</field>
|
|
<field name="numbercall">-1</field>
|
|
<field eval="False" name="doall" />
|
|
<field name="model">stock.reservation</field>
|
|
<field name="function">release_validity_exceeded</field>
|
|
<field name="args">()</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|