OCA / l10n-netherlands

Odoo Dutch Localization
GNU Affero General Public License v3.0
21 stars 55 forks source link

[14.0][FIX] l10n_nl_xaf_auditfile_export: Fixed auditfile exports with no a… #390

Closed ddejong-therp closed 1 year ago

ddejong-therp commented 1 year ago

…ccounts when another company is active.

So, when you generate an auditfile on a multi-company instance, and your active company is a different one than on the xaf.auditfile.export record that you are trying to export, it gets exported without any accounts (generalLedger tag is empty). This fixes that.

ddejong-therp commented 1 year ago

I'm closing this PR, because I think it is better to just have a record rule that limits the visibility/accessibility of xaf.auditfile.export to the company it is created for. Thanks @NL66278 for the idea.

ddejong-therp commented 1 year ago

Here is the new PR: https://github.com/OCA/l10n-netherlands/pull/391