Skip to content

Commit

Permalink
FIX facto_bpce: env.company, instead of env.user.company_id
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Oct 9, 2023
1 parent c465fc0 commit bbf34a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def _get_domain_for_factor(
partner_selection_field=partner_selection_field,
currency=currency,
)
if self.env.user.company_id.bpce_start_date:
domain = [("date", ">=", self.env.user.company_id.bpce_start_date)] + domain
if self.env.company.bpce_start_date:
domain = [("date", ">=", self.env.company.bpce_start_date)] + domain
return domain

def _get_bpce_header(self):
Expand Down

0 comments on commit bbf34a9

Please sign in to comment.