Create company and chart of account when activate modules in test scenario

This commit is contained in:
Cédric Krier
2024-09-11 19:05:12 +02:00
parent d83bcc784c
commit d3cca51abc
335 changed files with 1580 additions and 3035 deletions
@@ -16,17 +16,16 @@ Imports::
Activate modules::
>>> config = activate_modules('account_statement_rule')
>>> config = activate_modules(
... 'account_statement_rule', create_company, create_chart)
Create company::
Get company::
>>> _ = create_company()
>>> company = get_company()
Create chart of accounts::
Get accounts::
>>> _ = create_chart(company)
>>> accounts = get_accounts(company)
>>> accounts = get_accounts()
>>> receivable = accounts['receivable']
>>> cash = accounts['cash']
>>> tax = accounts['tax']
@@ -19,7 +19,9 @@ Imports::
Activate modules::
>>> config = activate_modules(['account_statement_rule', 'bank'])
>>> config = activate_modules(
... ['account_statement_rule', 'bank'],
... create_company, create_chart)
>>> AccountJournal = Model.get('account.journal')
>>> Bank = Model.get('bank')
@@ -29,21 +31,19 @@ Activate modules::
>>> Statement = Model.get('account.statement')
>>> StatementJournal = Model.get('account.statement.journal')
Create company::
Get company::
>>> _ = create_company()
>>> company = get_company()
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear(company, today))
... create_fiscalyear(today=today))
>>> fiscalyear.click('create_period')
Create chart of accounts::
Get accounts::
>>> _ = create_chart(company)
>>> accounts = get_accounts(company)
>>> accounts = get_accounts()
Create a party::
@@ -19,23 +19,22 @@ Imports::
Activate modules::
>>> config = activate_modules('account_statement_rule')
>>> config = activate_modules(
... 'account_statement_rule', create_company, create_chart)
Create company::
Get company::
>>> _ = create_company()
>>> company = get_company()
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear(company, today))
... create_fiscalyear(today=today))
>>> fiscalyear.click('create_period')
Create chart of accounts::
Get accounts::
>>> _ = create_chart(company)
>>> accounts = get_accounts(company)
>>> accounts = get_accounts()
>>> receivable = accounts['receivable']
>>> cash = accounts['cash']