first commit
This commit is contained in:
35
tests/scenario_sale_line_delete_log.rst
Normal file
35
tests/scenario_sale_line_delete_log.rst
Normal file
@@ -0,0 +1,35 @@
|
||||
=============================
|
||||
Sale Line Delete Log Scenario
|
||||
=============================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> from proteus import Model, Wizard
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||
>>> from trytond.modules.account.tests.tools import (
|
||||
... create_chart, create_fiscalyear, get_accounts)
|
||||
>>> import datetime as dt
|
||||
>>> today = dt.date.today()
|
||||
|
||||
|
||||
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules('sale_line_delete_log')
|
||||
|
||||
|
||||
Create company::
|
||||
|
||||
>>> _ = create_company()
|
||||
>>> company = get_company()
|
||||
|
||||
Create fiscal years::
|
||||
|
||||
>>> fiscalyear = create_fiscalyear(company, today)
|
||||
>>> fiscalyear.click('create_period')
|
||||
>>> periods = fiscalyear.periods
|
||||
>>> len(periods)
|
||||
12
|
||||
>>> period_1, period_3, period_5 = periods[0], periods[2], periods[4]
|
||||
Reference in New Issue
Block a user