Skip to content

Commit

Permalink
sale_stock_release_channel_partner_by_date: look for archived specifi…
Browse files Browse the repository at this point in the history
…c channel
  • Loading branch information
sebalix committed Jan 13, 2025
1 parent 6ef302a commit 502c45b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ def _get_release_channel_partner_date(self):
self.ensure_one()
model = self.env["stock.release.channel.partner.date"]
domain = self._get_release_channel_partner_date_domain()
return domain and model.search(domain, limit=1) or model
return (
domain
and model.with_context(active_test=False).search(domain, limit=1)
or model
)

def _get_release_channel_partner_date_domain(self):
self.ensure_one()
Expand Down

0 comments on commit 502c45b

Please sign in to comment.