Skip to content

Commit

Permalink
Merge PR #401 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by thomaspaulb
  • Loading branch information
OCA-git-bot committed Oct 12, 2023
2 parents 3b6fbbc + a637cf9 commit aa5d7d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions l10n_nl_xaf_auditfile_export/models/xaf_auditfile_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _compute_fiscalyear_name(self):
@api.model
def default_get(self, fields_list):
defaults = super().default_get(fields_list)
company = self.env.user.company_id
company = self.env.company
fy_dates = company.compute_fiscalyear_dates(datetime.now())
defaults.setdefault("date_start", fy_dates["date_from"])
defaults.setdefault("date_end", fy_dates["date_to"])
Expand All @@ -96,7 +96,6 @@ def default_get(self, fields_list):
"current_datetime": datetime.now().strftime("%Y"),
},
)

return defaults

@api.constrains("date_start", "date_end")
Expand Down

0 comments on commit aa5d7d6

Please sign in to comment.