Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] *+xaf_auditfile_export: use correct company in name #401

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading