Create company and chart of account when activate modules in test scenario
This commit is contained in:
@@ -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']
|
||||
|
||||
+7
-7
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user