Skip to content

Commit

Permalink
fixup! shopfloor_reception: adapt to changes in delivery_carrier_retu…
Browse files Browse the repository at this point in the history
…rn_barcode_pattern
  • Loading branch information
TDu committed Jan 24, 2024
1 parent 86f9ae7 commit 9f2ec8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shopfloor_reception/actions/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ class SearchAction(Component):
def _get_origin_from_barcode(self, barcode):
if self.work.menu.scenario_id.key == "reception":
carriers = self.env["delivery.carrier"].search([])
return carriers._get_origin_from_barcode(barcode)
res = carriers._get_origin_from_barcode(barcode)
if res:
return res
return super()._get_origin_from_barcode(barcode)

0 comments on commit 9f2ec8b

Please sign in to comment.