[MIG] stock_available_sale: Migration to 10.0

This commit is contained in:
David Vidal
2017-09-04 19:08:56 +02:00
committed by ps-tubtim
parent 4988d74218
commit 1df96ff831
2 changed files with 36 additions and 36 deletions

View File

@@ -28,13 +28,13 @@ class StockConfig(models.TransientModel):
"available to promise.\n"
"This installs the module stock_available_immediately.")
# module_stock_available_sale = fields.Boolean(
# string='Exclude goods already in sale quotations',
# help="This will subtract quantities from the sale quotations from "
# "the quantities available to promise.\n"
# "This installs the modules stock_available_sale.\n"
# "If the modules sale and sale_delivery_date are not "
# "installed, this will install them too")
module_stock_available_sale = fields.Boolean(
string='Exclude goods already in sale quotations',
help="This will subtract quantities from the sale quotations from "
"the quantities available to promise.\n"
"This installs the modules stock_available_sale.\n"
"If the modules sale and sale_delivery_date are not "
"installed, this will install them too")
module_stock_available_mrp = fields.Boolean(
string='Include the production potential',

View File

@@ -4,35 +4,35 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<record id="view_stock_configuration" model="ir.ui.view">
<field name="name">Stock settings: quantity available to promise</field>
<field name="model">stock.config.settings</field>
<field name="inherit_id" ref="stock.view_stock_config_settings" />
<field name="arch" type="xml">
<data>
<xpath expr="//group[last()]" position="after">
<group>
<label for="id" string="Stock available to promise" />
<record id="view_stock_configuration" model="ir.ui.view">
<field name="name">Stock settings: quantity available to promise</field>
<field name="model">stock.config.settings</field>
<field name="inherit_id" ref="stock.view_stock_config_settings" />
<field name="arch" type="xml">
<data>
<xpath expr="//group[last()]" position="after">
<group>
<label for="id" string="Stock available to promise" />
<div>
<div>
<div>
<field name="module_stock_available_immediately"
class="oe_inline" />
<label for="module_stock_available_immediately" />
</div>
<!-- <div>
<field name="module_stock_available_sale" class="oe_inline" />
<label for="module_stock_available_sale" />
</div> -->
<div>
<field name="module_stock_available_mrp" class="oe_inline" />
<label for="module_stock_available_mrp" />
<label for="stock_available_mrp_based_on" />
<field name="stock_available_mrp_based_on" class="oe_inline" attrs="{'required':[('module_stock_available_mrp','=',True)]}"/>
</div>
<field name="module_stock_available_immediately"
class="oe_inline" />
<label for="module_stock_available_immediately" />
</div>
</group>
</xpath>
</data>
</field>
</record>
<!--<div>-->
<!--<field name="module_stock_available_sale" class="oe_inline" />-->
<!--<label for="module_stock_available_sale" />-->
<!--</div>-->
<div>
<field name="module_stock_available_mrp" class="oe_inline" />
<label for="module_stock_available_mrp" />
<label for="stock_available_mrp_based_on" />
<field name="stock_available_mrp_based_on" class="oe_inline" attrs="{'required':[('module_stock_available_mrp','=',True)]}"/>
</div>
</div>
</group>
</xpath>
</data>
</field>
</record>
</odoo>