mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
With this change a new option is available on the stock rule. It allows to use the MTS rule only if the full quantity is avaiable.
52 lines
2.1 KiB
XML
52 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="stock_location_route_form_view_mto_mto" model="ir.ui.view">
|
|
<field name="name">stock.location.route.form.mts.mto</field>
|
|
<field name="model">stock.location.route</field>
|
|
<field name="inherit_id" ref="stock.stock_location_route_form_view" />
|
|
<field name="arch" type="xml">
|
|
<field name="action" position="after">
|
|
<field
|
|
name="mts_rule_id"
|
|
groups="stock.group_adv_location"
|
|
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
|
|
/>
|
|
<field
|
|
name="mto_rule_id"
|
|
groups="stock.group_adv_location"
|
|
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
|
|
/>
|
|
<field
|
|
name="mts_quantity_rule"
|
|
groups="stock.group_adv_location"
|
|
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
|
|
/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
<record id="view_stock_rule_form_view_mto_mto" model="ir.ui.view">
|
|
<field name="name">stock.rule.form.mts.mto</field>
|
|
<field name="model">stock.rule</field>
|
|
<field name="inherit_id" ref="stock.view_stock_rule_form" />
|
|
<field name="arch" type="xml">
|
|
<field name="action" position="after">
|
|
<field
|
|
name="mts_rule_id"
|
|
groups="stock.group_adv_location"
|
|
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
|
|
/>
|
|
<field
|
|
name="mto_rule_id"
|
|
groups="stock.group_adv_location"
|
|
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
|
|
/>
|
|
<field
|
|
name="mts_quantity_rule"
|
|
groups="stock.group_adv_location"
|
|
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
|
|
/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|