Skip to content
Snippets Groups Projects
Commit afcad067 authored by Nicolas Seinlet's avatar Nicolas Seinlet
Browse files

[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#97230

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 01feeb84
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment