We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43e39d6 + 7679d75 commit b121dc3Copy full SHA for b121dc3
sale_stock_delivery_address/models/sale_order_line.py
@@ -22,8 +22,7 @@ def _get_procurement_group_key(self):
22
priority = 15
23
key = super(SaleOrderLine, self)._get_procurement_group_key()
24
# Check priority
25
- if key[0] >= priority:
26
- return key
27
- if self.dest_address_id:
28
- return (priority, self.dest_address_id)
29
- return (priority, key)
+ if key[0] < priority:
+ if self.dest_address_id:
+ return (priority, self.dest_address_id)
+ return key
0 commit comments