Hi all,
I have a demo company and I try to load an account chart for that company like this:
<function model="account.chart.template" name="try_loading">
<value eval="[ref('l10n_de_skr03.l10n_de_chart_template')]"/>
<value model="res.company" eval="obj().env.ref('custom_module.company_test')"/>
</function>
Unfortunately since one of the last odoo updates that leads to an account testcase error in several tests:
odoo.exceptions.UserError: ('Some records are incompatible with the company of the Journal Item.\n\nIncompatibilities:\nFields: account_id\nRecord ids: 1738\n', '')
I found out that an account.move.line ("/ Write-Off") of the default odoo company (id = 1) is linked to an account entry of SKR03 ("Abgänge Sachanalgen Restbuchwert") which belongs to my custom company. That leads to that error.
Does anyone know what I am doing wrong here?