changeset 363af366dd0e in modules/account_fr:default
details:
https://hg.tryton.org/modules/account_fr?cmd=changeset&node=363af366dd0e
description:
Always use proteus config argument in testing tools
issue10548
review338421002
diffstat:
tests/tools.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 904e7c534360 -r 363af366dd0e tests/tools.py
--- a/tests/tools.py Sun Jul 04 17:54:46 2021 +0200
+++ b/tests/tools.py Mon Jul 12 22:56:26 2021 +0200
@@ -10,10 +10,10 @@
def create_chart(company=None, config=None):
"Create chart of accounts"
AccountTemplate = Model.get('account.account.template', config=config)
- ModelData = Model.get('ir.model.data')
+ ModelData = Model.get('ir.model.data', config=config)
if not company:
- company = get_company()
+ company = get_company(config=config)
data, = ModelData.find([
('module', '=', 'account_fr'),
('fs_id', '=', 'root'),
@@ -21,7 +21,7 @@
account_template = AccountTemplate(data.db_id)
- create_chart = Wizard('account.create_chart')
+ create_chart = Wizard('account.create_chart', config=config)
create_chart.execute('account')
create_chart.form.account_template = account_template
create_chart.form.company = company
@@ -40,7 +40,7 @@
Account = Model.get('account.account', config=config)
if not company:
- company = get_company()
+ company = get_company(config=config)
accounts = {}
accounts['receivable'], = Account.find([