Accounting mailing list archives

accounting@odoo-community.org

Avatar

Re: Modify Demodata/Accounting Localisation for Testing

by
TAKOBI s.r.l., Lorenzo Battistini.
- 28/05/2025 17:53:20
Hello,
I think you can take inspiration from
https://github.com/odoo/odoo/blob/18.0/addons/l10n_de/tests/test_account_move.py

Lorenzo Battistini


On 26/05/25 18:17, Peter Niederlag wrote:
Hello dear fellow Odooers,

currently I am porting an OCA-module to 18.x. Unfortunatly the tests are 
broken as the default chart of accounts (generic_coa) is installed while 
the tests rely on the chart of accounts from the german localisation 
(l10n_de) being in place and used during setup of demo(testing)-data.

Any tips/suggestions on changing stuff so my tests are run with 
accounting based on german localisation?

I tried to add a depedency for "l10n_de" but unfortunatly that didn't 
quite do the trick.

https://github.com/OCA/l10n-germany/pull/188

thx and greets,
Peter

_______________________________________________
Mailing-List: https://odoo-community.org/groups/accounting-28
Post to: mailto:accounting@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


Reference