[FIX] stock_dropshipping: lack of picking type
Sometimes, no picking type match the domain, but picking_type_id is a required field. closes odoo/odoo#97278 X-original-commit: afcad067bccc7676b4e40cc57f8d9b5792068802 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -91,6 +91,8 @@ class ResCompany(models.Model):
|
||||
('default_location_src_id.usage', '=', 'supplier'),
|
||||
('default_location_dest_id.usage', '=', 'customer'),
|
||||
], limit=1, order='sequence')
|
||||
if not dropship_picking_type:
|
||||
continue
|
||||
dropship_vals.append({
|
||||
'name': '%s → %s' % (supplier_location.name, customer_location.name),
|
||||
'action': 'buy',
|
||||
|
||||
Reference in New Issue
Block a user