Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! Add delivery_purchase_label
  • Loading branch information
TDu committed Sep 24, 2024
1 parent bf95910 commit f999136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion delivery_purchase_label/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def _get_purchase_delivery_label_picking_value(self, carrier):
"partner_id": self.dest_address_id.id,
"user_id": False,
"date": fields.Datetime.now(),
"origin": self.origin,
"origin": " - ".join(
[origin for origin in [self.origin, self.name] if origin]
),
"location_dest_id": self.partner_id.property_stock_supplier.id,
"location_id": self.partner_id.property_stock_supplier.id,
"company_id": self.company_id.id,
Expand Down

0 comments on commit f999136

Please sign in to comment.