From 3ad350922fca812e4dddfe25cfb9fb335fa26453 Mon Sep 17 00:00:00 2001 From: Ethan Vincent Date: Thu, 7 Mar 2024 09:51:47 +0100 Subject: [PATCH] [FIX] stock_dropshipping: add dropship to domain **Current behavior:** When making a new RFQ, dropship is not an available selection for the 'Deliver To' option. **Expected behavior:** As on previous versions, you should 'dropship' should be selectable here which reveals a sub-selection to select the customer who should receive the shipment. **Steps to reproduce:** 1. Enable `Dropshipping` in Purchase settings as well as `Storage Locations` in Inventory settings 2. Create a new RFQ, observe that in the 'Deliver To' dropdown there is no way to select a dropship option **Cause of the issue:** Dropshipping was made into a discrete `stock.picking.type`.code and the domain that constrains the selection menu options is not modified to accomodate this change. **Fix:** Update the domain to show picking types that have the dropship code. opw-3764617 closes odoo/odoo#157548 X-original-commit: 3ea6e552bde90533f983689d786fee219e0e61ce Signed-off-by: Djamel Touati (otd) Signed-off-by: Vincent Ethan --- addons/stock_dropshipping/views/purchase_order_views.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/stock_dropshipping/views/purchase_order_views.xml b/addons/stock_dropshipping/views/purchase_order_views.xml index dd3031eb06a..3246c4b9caf 100644 --- a/addons/stock_dropshipping/views/purchase_order_views.xml +++ b/addons/stock_dropshipping/views/purchase_order_views.xml @@ -14,6 +14,11 @@ + + + [('code', 'in', ('incoming', 'dropship')), '|', ('warehouse_id', '=', False), ('warehouse_id.company_id', '=', company_id)] + +