Skip to content

Commit

Permalink
Merge PR #13 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by andhit-r
  • Loading branch information
ssi-bot committed Jan 12, 2024
2 parents ac4294c + 562cd30 commit c99aa4f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ssi_rma/models/rma_line_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,16 @@ def _get_delivery_procurement_data(self):
origin = self.order_id.name
warehouse = self.order_id.route_template_id.outbound_warehouse_id
route = self.order_id.route_template_id.outbound_route_id
location = (
self.order_id.route_template_id.partner_location_id
or self.order_id.partner_id.property_stock_customer
)
if self.order_id.type == "customer":
location = (
self.order_id.route_template_id.partner_location_id
or self.order_id.partner_id.property_stock_customer
)
else:
location = (
self.order_id.route_template_id.partner_location_id
or self.order_id.partner_id.property_stock_supplier
)

result = {
"name": self.order_id.name,
Expand Down

0 comments on commit c99aa4f

Please sign in to comment.