36 lines
871 B
ReStructuredText
36 lines
871 B
ReStructuredText
=============================
|
|
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]
|