[FIX] stock: display all operation if no "restricted_picking_type_code"
Steps to reproduce the bug: - enable “package” option in inventory settings - Create a package - save and click on “Package Transfers” - Create a new transfer Problem: No operation type is displayed. Because we do a `name_search` with the following domain: `[["code","=",none]]` opw-3394868 closes odoo/odoo#128463 X-original-commit: 149af0ebf22b4575c89d6f4f875f988dc6064c07 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Djamel Touati (otd) <otd@odoo.com>
This commit is contained in:
@@ -208,7 +208,7 @@
|
||||
<field name="partner_id" nolabel="1"/>
|
||||
<field name="picking_type_id" options="{'no_open': True}"
|
||||
attrs="{'invisible': [('hide_picking_type', '=', True)], 'readonly': [('id', '!=', False)]}"
|
||||
domain="context.get('restricted_picking_type_code', []) and [('code', '=', context.get('restricted_picking_type_code'))]"/>
|
||||
domain="context.get('restricted_picking_type_code') and [('code', '=', context.get('restricted_picking_type_code'))] or [(1,'=',1)]"/>
|
||||
<field name="location_id" groups="!stock.group_stock_multi_locations" invisible="1"/>
|
||||
<field name="location_dest_id" groups="!stock.group_stock_multi_locations" invisible="1"/>
|
||||
<field name="location_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('picking_type_code', '=', 'incoming')]}"/>
|
||||
|
||||
Reference in New Issue
Block a user