[12.0][IMP] account_tax_balance: multicompany fiscal unit #613
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In some countries it is allowed to declare to the tax authorities one single tax report that contains data of multiple companies. For example, in The Netherlands a group of companies (one parent company and N children companies) can form a fiscal unit; in this case, the parent company declares one single tax statement for all companies of the fiscal unit (see OCA/l10n-netherlands#237).
In the current
account_tax_balance
module, you can only see the data regarding move lines of the company you're logged in. This is fine when using the module itself but it could be a bit uncomfortable when extending the module to generate tax statements for multiple companies.This PR make the extension of this module easier in case of generating reports for multiple companies.
Without this PR, it is still possible to do it, but that requires overriding the methods
get_move_line_partial_domain()
and_account_tax_ids_with_moves()
.Not sure if this patch should set the version of the module to
12.0.2.0.0
, since the type of one returned value ofget_context_values()
method is changed. In any case, I think it's a good idea to include this patch when migratingaccount_tax_balance
module to V13.