[IMP] stock: products created from replenishment default to storable

The current default is "consumable". This is at odds with the nature of
replenishable products, as "consumable" does not keep track of stock
numbers.

task-3439196

closes odoo/odoo#129775

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
Arthur Jochems (ajoc)
2023-07-27 02:21:29 +02:00
parent 8b5f022a51
commit 74f6e4e886
@@ -44,7 +44,7 @@
<field name="product_category_id" invisible="1"/>
<field name="product_tmpl_id" invisible="1"/>
<field name="unwanted_replenish" invisible="1"/>
<field name="product_id" attrs="{'readonly': [('product_id', '!=', False)]}" force_save="1"/>
<field name="product_id" attrs="{'readonly': [('product_id', '!=', False)]}" force_save="1" context="{'default_detailed_type': 'product'}"/>
<field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
<field name="warehouse_id" options="{'no_create': True}" groups="stock.group_stock_multi_warehouses" optional="hide"/>
<field name="qty_on_hand" force_save="1"/>