mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] rma: dropship from vendor as outgoing
This commit is contained in:
committed by
JasminSForgeFlow
parent
79479530d9
commit
ef1ab18b3b
@@ -102,17 +102,19 @@ class RmaMakePicking(models.TransientModel):
|
||||
def _get_procurement_data(self, item, group, qty, picking_type):
|
||||
line = item.line_id
|
||||
delivery_address_id = self._get_address(item)
|
||||
location, warehouse, route = False, False, False
|
||||
if picking_type == "incoming":
|
||||
if line.customer_to_supplier:
|
||||
location = self._get_address_location(delivery_address_id, "supplier")
|
||||
elif line.supplier_to_customer:
|
||||
location = self._get_address_location(delivery_address_id, "customer")
|
||||
else:
|
||||
location = line.location_id
|
||||
warehouse = line.in_warehouse_id
|
||||
route = line.in_route_id
|
||||
else:
|
||||
location = self._get_address_location(delivery_address_id, line.type)
|
||||
elif picking_type == "outgoing":
|
||||
if line.supplier_to_customer:
|
||||
location = self._get_address_location(delivery_address_id, "customer")
|
||||
else:
|
||||
location = self._get_address_location(delivery_address_id, line.type)
|
||||
warehouse = line.out_warehouse_id
|
||||
route = line.out_route_id
|
||||
if not route:
|
||||
|
||||
Reference in New Issue
Block a user