mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Normal BoM products (those which are manufactured) are regular stored products and their immediately_usable_qty will be summed with potential stock. This was the expected behavior of the module and it was lost at some point. Phantom BoM products (kits) don't have real stock so their available to promise quantity will be the same as the potential. As an improvement, we've added the possibility to override the sum of potential and available to promise. In some cases such addition doesn't make sense as we don't know how long can take to manufacture those potential units. TT35589
16 lines
538 B
XML
16 lines
538 B
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="mrp_bom_view_notes_form" model="ir.ui.view">
|
|
<field name="model">mrp.bom</field>
|
|
<field name="inherit_id" ref="mrp.mrp_bom_form_view" />
|
|
<field name="arch" type="xml">
|
|
<field name="picking_type_id" position="after">
|
|
<field
|
|
name="add_potential_exception"
|
|
attrs="{'invisible': [('type', '=', 'phantom')]}"
|
|
/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|