Accounting mailing list archives

accounting@odoo-community.org

Avatar

Re: Modify Demodata/Accounting Localisation for Testing

by
Datenbetrieb Technologie UGh, Peter Niederlag
- 02/06/2025 08:16:28
Hi,

thx! That did the trick, AccountTestInvoicingCommon provides some 
helpful utilities...

@AccountTestInvoicingCommon.setup_country("de")
@AccountTestInvoicingCommon.setup_chart_template("de_skr03")


Cheers,
Peter


On 28.05.25 17:57, Lorenzo Battistini wrote:

> Hello,

> I think you can take inspiration from

> https://github.com/odoo/odoo/blob/18.0/addons/l10n_de/tests/test_account_move.py <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  <https://github.com/OCA/l10n-germany/pull/188>

>>

>> thx and greets,

>> Peter

>>

>> _______________________________________________

>> Mailing-List: https://odoo-community.org/groups/accounting-28 

>> <https://odoo-community.org/groups/accounting-28>

>> Post to: mailto:accounting@odoo-community.org 

>> <mailto:accounting@odoo-community.org>

>> Unsubscribe: https://odoo-community.org/groups?unsubscribe 

>> <https://odoo-community.org/groups?unsubscribe>

>>

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/accounting-28 

> <https://odoo-community.org/groups/accounting-28>

> Post to: mailto:accounting@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe 

> <https://odoo-community.org/groups?unsubscribe>

> 

mit freundlichen Grüßen,
Peter Niederlag

-- 
Dipl. Ökonom Peter Niederlag
Geschäftsführender Gesellschafter

Lösungen für digitale Zeiten
Agile DevOps, Cloud, TYPO3, Odoo und Linux

Datenbetrieb Technologie UG(haftungsbeschränkt)
Lipper Hellweg 146,  33605 Bielefeld
Geschäftsführer: Peter Niederlag
HRB 41826 Amtsgericht Bielefeld
Fon 0521 / 446 958 60
Fax 0521 / 446 958 69

Reference