It would contain a main chart.xml file with Account Type Template and Account Template records implementing IFRS, which name fields are subject of translation, this way we can then create a diferent file for each defined language using XSLT.
It is how Account type chart would look like
Extending
This module can be extended or updated by specific needs, for example, countries could have diferent names for an account, or need more/less accounts than it provides.
Taxes are not covered by IFRS, just how they are showed in reporting, so each country must create custom module for its taxes implementation
I think we do not have the functionality to extend a chart of accounts. So if you want to reuse the IFRS chart of account in your country code you should have to copy paste all the definition of the account_ifrs module into the account_pa module. Otherwise activating the account_pa module will force any user of the IFRS chart to load the panama accounts which is not correct for other countries.
If we go this way probably we should think on how to improve this situatoin.
One suggestion is to use XSLT to take the chart from the account_ifrs module and another file containing just the Panama specific changes and output the full account_pa chart. Something a bit like this:
I’m wondering if it will not be better to use IFRS in account module to replace the minimal chart of account.
No because a template can be used to one chart per company.
I do not think it is needed to have such machinery.
Indeed if IFRS becomes the new minimal chart, the custom implementation could just be a copy of the corresponding translated chart from account module. It can be a plain copy and it is easy to maintain as it is just a copy.
Rename the minimal account chart names and structure with IFRS terms. Also create a new module account_ifrs which re-use or re-defines the accounts from minimal chart of accounts and extend it with the missing IFRS.
This way we preserve a very simple minimal chart for testing purposes, which can be completed by a separated module.
No, I didn’t test. My proposal was about the topic, to rescue the minimal account chart which is good designed for testing purposes. I find it handy and easy to understand having only one account for one accounting functionality. The minimal accounts are generic named, which also helps. The minimal chart let the understanding of test cases and scenarios focus on the minimal functional needs.
I fear when we use the IFRS to replace the minimal chart, that the number of accounts and the separate upstream makes writing and understanding test cases and scenarios more complicated.
But maybe it is better to re-use the actual minimal chart internally for testing purposes only. We can use it solely by the helper script. But I have no idea how we could make the minimal chart available internal only.
Yes, you are right. I reviewed the changes for the tests and the provided solution in the old code review is to just limit the results from account search to one. So the solution from @formateli is much simpler and better then my proposal.