Closed NL66278 closed 1 year ago
Tested it, and with this fix, the name is now based on the actually selected company.
This PR has the approved
label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
/ocabot merge minor
On my way to merge this fine PR! Prepared branch 14.0-ocabot-merge-pr-393-by-NL66278-bump-minor, awaiting test results.
Congratulations, your PR was merged at 9ac95ff3e8da08dfbe20cf1b7de7f49380d3c2fe. Thanks a lot for contributing to OCA. ❤️
Currently the export record is created with the current company in the environment (self.env.company), but the default company for the user (self.env.user.company_id) is applied to the name generated. This can and will lead to mismatches.
This fix will consistently use self.env.company.