Check doctest files
They are converted to python files before running checks.
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
ignore=E123,E124,E126,E128,E741,W503
|
ignore=E123,E124,E126,E128,E741,W503
|
||||||
extend-exclude=cookiecutter-module
|
extend-exclude=cookiecutter-module
|
||||||
|
per-file-ignores =
|
||||||
|
**/*/tests/scenario*.py:E302,E305
|
||||||
|
|||||||
@@ -103,6 +103,8 @@ check-doc-readthedocs:
|
|||||||
|
|
||||||
.check-code:
|
.check-code:
|
||||||
extends: .check
|
extends: .check
|
||||||
|
before_script:
|
||||||
|
- .gitlab-scripts/doctest2python.py
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
||||||
when: always
|
when: always
|
||||||
|
|||||||
Executable
+30
@@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import doctest
|
||||||
|
import glob
|
||||||
|
import os
|
||||||
|
from itertools import chain
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
parser = doctest.DocTestParser()
|
||||||
|
|
||||||
|
for filename in chain(glob.glob('**/*/tests/*.rst', root_dir=ROOT_DIR)):
|
||||||
|
filename = Path(filename)
|
||||||
|
with open(filename, 'r') as scenario:
|
||||||
|
text = scenario.read()
|
||||||
|
|
||||||
|
with open(filename.with_suffix('.py'), 'w') as file:
|
||||||
|
newline = False
|
||||||
|
for line in parser.parse(text):
|
||||||
|
if isinstance(line, doctest.Example):
|
||||||
|
if newline:
|
||||||
|
file.write('\n')
|
||||||
|
file.write(line.source)
|
||||||
|
newline = False
|
||||||
|
elif not line:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
newline = True
|
||||||
@@ -4,14 +4,13 @@ Account Active Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime
|
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
>>> from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ Account Reconcile Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> party_required = globals().get('party_required', True)
|
>>> party_required = globals().get('party_required', True)
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ Account Reconcile Automatic Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,12 @@ Account Reconciliation Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... activate_modules, assertEqual, assertTrue)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
... get_company
|
>>> from trytond.tests.tools import activate_modules, assertEqual, assertTrue
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ Account Reconciliation Alternate Currency
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import (
|
|
||||||
... activate_modules, assertEqual, assertTrue)
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual, assertTrue
|
||||||
|
|
||||||
>>> post_moves = globals().get('post_moves', False)
|
>>> post_moves = globals().get('post_moves', False)
|
||||||
|
|
||||||
|
|||||||
+7
-5
@@ -5,12 +5,13 @@ Account Reconciliation Alternate Currency with Write-Off
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertTrue
|
||||||
|
|
||||||
>>> post_moves = globals().get('post_moves', False)
|
>>> post_moves = globals().get('post_moves', False)
|
||||||
|
|
||||||
@@ -122,8 +123,9 @@ Reconcile lines::
|
|||||||
>>> reconcile_lines.form.writeoff = write_off
|
>>> reconcile_lines.form.writeoff = write_off
|
||||||
>>> reconcile_lines.execute('reconcile')
|
>>> reconcile_lines.execute('reconcile')
|
||||||
|
|
||||||
>>> reconcile1.reconciliation == reconcile2.reconciliation != None
|
>>> reconcile1.reconciliation == reconcile2.reconciliation
|
||||||
True
|
True
|
||||||
|
>>> assertTrue(reconcile1.reconciliation)
|
||||||
>>> reconciliation, = Reconciliation.find([])
|
>>> reconciliation, = Reconciliation.find([])
|
||||||
>>> len(reconciliation.lines)
|
>>> len(reconciliation.lines)
|
||||||
4
|
4
|
||||||
|
|||||||
@@ -10,12 +10,10 @@ Imports::
|
|||||||
>>> from dateutil.relativedelta import relativedelta
|
>>> from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> last_year = today - relativedelta(years=1)
|
>>> last_year = today - relativedelta(years=1)
|
||||||
@@ -52,8 +50,8 @@ Create chart of accounts::
|
|||||||
Prepare the closing settings for fiscalyear close::
|
Prepare the closing settings for fiscalyear close::
|
||||||
|
|
||||||
>>> journal_sequence, = Sequence.find([
|
>>> journal_sequence, = Sequence.find([
|
||||||
... ('sequence_type.name', '=', "Account Journal"),
|
... ('sequence_type.name', '=', "Account Journal"),
|
||||||
... ], limit=1)
|
... ], limit=1)
|
||||||
>>> journal_closing = Journal()
|
>>> journal_closing = Journal()
|
||||||
>>> journal_closing.name = 'Closing'
|
>>> journal_closing.name = 'Closing'
|
||||||
>>> journal_closing.code = 'CLO'
|
>>> journal_closing.code = 'CLO'
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ Move Cancel Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
... get_company
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -7,12 +7,11 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account.exceptions import CancelDelegatedWarning
|
>>> from trytond.modules.account.exceptions import CancelDelegatedWarning
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -135,7 +135,8 @@ Group lines::
|
|||||||
>>> assertEqual(delegate_to.account, receivable)
|
>>> assertEqual(delegate_to.account, receivable)
|
||||||
>>> delegate_to.debit
|
>>> delegate_to.debit
|
||||||
Decimal('50')
|
Decimal('50')
|
||||||
>>> assertEqual(delegate_to.maturity_date, period.start_date + dt.timedelta(days=2))
|
>>> assertEqual(
|
||||||
|
... delegate_to.maturity_date, period.start_date + dt.timedelta(days=2))
|
||||||
>>> delegate_to.move_description_used
|
>>> delegate_to.move_description_used
|
||||||
'Group lines'
|
'Group lines'
|
||||||
|
|
||||||
@@ -144,10 +145,10 @@ Cancelling the delegation move::
|
|||||||
>>> delegation_move = delegate_to.move
|
>>> delegation_move = delegate_to.move
|
||||||
>>> cancel = Wizard('account.move.cancel', [delegation_move])
|
>>> cancel = Wizard('account.move.cancel', [delegation_move])
|
||||||
>>> try:
|
>>> try:
|
||||||
... cancel.execute('cancel')
|
... cancel.execute('cancel')
|
||||||
... except CancelDelegatedWarning as warning:
|
... except CancelDelegatedWarning as warning:
|
||||||
... _, (key, *_) = warning.args
|
... _, (key, *_) = warning.args
|
||||||
... raise
|
... raise
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
CancelDelegatedWarning: ...
|
CancelDelegatedWarning: ...
|
||||||
|
|||||||
@@ -4,18 +4,16 @@ Reschedule Lines Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
>>> from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,13 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime
|
>>> import datetime
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import (
|
>>> from trytond.tests.tools import (
|
||||||
... activate_modules, assertEqual, assertLessEqual, assertGreaterEqual)
|
... activate_modules, assertEqual, assertGreaterEqual, assertLessEqual)
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax, create_tax_code
|
|
||||||
>>> today = datetime.date.today()
|
>>> today = datetime.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -4,12 +4,10 @@ Account Renew Fiscalyear Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from proteus import Wizard
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
|
>>> from proteus import Model, Report
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ Account Tax Code Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax, create_tax_code
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -4,18 +4,18 @@ Account Asset Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
|
>>> from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_asset.tests.tools import add_asset_accounts
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... create_payment_term, set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences, create_payment_term
|
|
||||||
>>> from trytond.modules.account_asset.tests.tools \
|
|
||||||
... import add_asset_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -112,8 +112,8 @@ Depreciate the asset::
|
|||||||
>>> asset.value
|
>>> asset.value
|
||||||
Decimal('1000.00')
|
Decimal('1000.00')
|
||||||
>>> assertEqual(asset.start_date, supplier_invoice.invoice_date)
|
>>> assertEqual(asset.start_date, supplier_invoice.invoice_date)
|
||||||
>>> assertEqual(asset.end_date, (supplier_invoice.invoice_date +
|
>>> assertEqual(asset.end_date,
|
||||||
... relativedelta(years=2, days=-1)))
|
... (supplier_invoice.invoice_date + relativedelta(years=2, days=-1)))
|
||||||
>>> asset.quantity
|
>>> asset.quantity
|
||||||
1.0
|
1.0
|
||||||
>>> assertEqual(asset.unit, unit)
|
>>> assertEqual(asset.unit, unit)
|
||||||
|
|||||||
@@ -4,18 +4,18 @@ Account Asset Depreciated Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
|
>>> from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_asset.tests.tools import add_asset_accounts
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences, create_payment_term
|
|
||||||
>>> from trytond.modules.account_asset.tests.tools \
|
|
||||||
... import add_asset_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -77,8 +77,8 @@ Depreciate the asset::
|
|||||||
>>> asset.depreciated_amount = Decimal('500.00')
|
>>> asset.depreciated_amount = Decimal('500.00')
|
||||||
>>> asset.start_date = fiscalyear.start_date
|
>>> asset.start_date = fiscalyear.start_date
|
||||||
>>> asset.purchase_date = asset.start_date
|
>>> asset.purchase_date = asset.start_date
|
||||||
>>> asset.end_date = (asset.start_date +
|
>>> asset.end_date = (asset.start_date
|
||||||
... relativedelta(years=2, days=-1))
|
... + relativedelta(years=2, days=-1))
|
||||||
>>> asset.quantity = 1
|
>>> asset.quantity = 1
|
||||||
>>> asset.residual_value = Decimal('100')
|
>>> asset.residual_value = Decimal('100')
|
||||||
>>> asset.click('create_lines')
|
>>> asset.click('create_lines')
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ Purchase Asset Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_asset.tests.tools import add_asset_accounts
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> from trytond.modules.account_asset.tests.tools \
|
|
||||||
... import add_asset_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,13 @@ Account Budget Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ Account Cash Rounding Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -5,15 +5,15 @@ Account Cash Rounding Alternate Currency Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> from proteus import Model
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ Account Cash Rounding Purchase Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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, \
|
|
||||||
... get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ Account Cash Rounding Sale Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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, \
|
|
||||||
... get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -7,12 +7,11 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Report
|
>>> from proteus import Model, Report
|
||||||
|
|
||||||
>>> from trytond.tests.tools import activate_modules, set_user
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, set_user
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -7,13 +7,12 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
|
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ Deposit Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_deposit.tests.tools import add_deposit_accounts
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... create_payment_term, set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences, create_payment_term
|
|
||||||
>>> from trytond.modules.account_deposit.tests.tools import \
|
|
||||||
... add_deposit_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_deposit.tests.tools import add_deposit_accounts
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences, create_payment_term)
|
... set_fiscalyear_invoice_sequences)
|
||||||
>>> from trytond.modules.account_deposit.tests.tools import (
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
... add_deposit_accounts)
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> yesterday = today - dt.timedelta(days=1)
|
>>> yesterday = today - dt.timedelta(days=1)
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,17 @@ Account Dunning Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime
|
>>> import datetime
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
|
>>> from dateutil.relativedelta import relativedelta
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import (
|
>>> from trytond.tests.tools import (
|
||||||
... activate_modules, set_user, assertEqual, assertTrue)
|
... activate_modules, assertEqual, assertTrue, set_user)
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> today = datetime.date.today()
|
>>> today = datetime.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, set_user
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
... get_company
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
>>> from trytond.tests.tools import activate_modules
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import config, Model, Wizard
|
|
||||||
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ Create move::
|
|||||||
>>> move.period = period
|
>>> move.period = period
|
||||||
>>> move.journal = journal_revenue
|
>>> move.journal = journal_revenue
|
||||||
>>> move.date = period.start_date
|
>>> move.date = period.start_date
|
||||||
>>> line = move.lines.new()
|
>>> line = move.lines.new()
|
||||||
>>> line.account = revenue
|
>>> line.account = revenue
|
||||||
>>> line.credit = Decimal(100)
|
>>> line.credit = Decimal(100)
|
||||||
>>> line = move.lines.new()
|
>>> line = move.lines.new()
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import config, Model, Wizard
|
|
||||||
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, set_user
|
>>> from trytond.tests.tools import activate_modules, set_user
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ Account ES EC Operation List Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_chart, get_accounts, create_fiscalyear)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ Create party::
|
|||||||
... ('company', '=', company.id),
|
... ('company', '=', company.id),
|
||||||
... ('kind', '=', 'purchase'),
|
... ('kind', '=', 'purchase'),
|
||||||
... ('name', '=', 'Compras Intracomunitarias'),
|
... ('name', '=', 'Compras Intracomunitarias'),
|
||||||
... ])
|
... ])
|
||||||
>>> party = Party(name='Intracomunitary Supplier')
|
>>> party = Party(name='Intracomunitary Supplier')
|
||||||
>>> party.supplier_tax_rule = tax_rule
|
>>> party.supplier_tax_rule = tax_rule
|
||||||
>>> tax_identifier = party.identifiers.new()
|
>>> tax_identifier = party.identifiers.new()
|
||||||
@@ -64,7 +64,7 @@ Create account category::
|
|||||||
... ('company', '=', company.id),
|
... ('company', '=', company.id),
|
||||||
... ('group.kind', '=', 'purchase'),
|
... ('group.kind', '=', 'purchase'),
|
||||||
... ('name', '=', 'IVA 21% (bienes)'),
|
... ('name', '=', 'IVA 21% (bienes)'),
|
||||||
... ])
|
... ])
|
||||||
>>> ProductCategory = Model.get('product.category')
|
>>> ProductCategory = Model.get('product.category')
|
||||||
>>> account_category = ProductCategory(name="Account Category")
|
>>> account_category = ProductCategory(name="Account Category")
|
||||||
>>> account_category.accounting = True
|
>>> account_category.accounting = True
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
|
>>> from proteus import Model, Report, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
|
||||||
... create_chart, get_accounts, create_fiscalyear)
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,16 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_chart, get_accounts, create_fiscalyear)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -4,16 +4,15 @@ Account ES Reporting Cancelled Invoices Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_chart, get_accounts, create_fiscalyear)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
|
||||||
... create_chart, get_accounts, create_fiscalyear)
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from proteus import Model, Report
|
||||||
>>> from trytond.tools import file_open
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_chart, get_accounts, create_fiscalyear)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
>>> from trytond.tools import file_open
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -4,13 +4,12 @@ Account ES SSI Renew Fiscalyear Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import 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_fiscalyear
|
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ FEC Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> import os
|
|
||||||
>>> import io
|
>>> import io
|
||||||
|
>>> import os
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
||||||
>>> from trytond.modules.account_fr.tests.tools import create_chart, \
|
>>> from trytond.modules.account_fr.tests.tools import create_chart, get_accounts
|
||||||
... get_accounts
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -9,23 +9,22 @@ Imports::
|
|||||||
>>> import time
|
>>> import time
|
||||||
>>> import uuid
|
>>> import uuid
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
>>> from unittest.mock import patch
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.modules.party.party import Identifier
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Patch SIRET validation::
|
Patch SIRET validation::
|
||||||
|
|
||||||
>>> from unittest.mock import patch
|
|
||||||
>>> from trytond.modules.party.party import Identifier
|
|
||||||
>>> mock = patch.object(
|
>>> mock = patch.object(
|
||||||
... Identifier, 'check_code',
|
... Identifier, 'check_code',
|
||||||
... return_value=None).start()
|
... return_value=None).start()
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ Cancelling Invoice Move Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.exceptions import (
|
>>> from trytond.modules.account_invoice.exceptions import CancelInvoiceMoveWarning
|
||||||
... CancelInvoiceMoveWarning)
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ Credit Note Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from operator import attrgetter
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax, create_tax_code
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -6,16 +6,16 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from operator import attrgetter
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
>>> from trytond.tests.tools import activate_modules
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> tomorrow = today + dt.timedelta(days=1)
|
>>> tomorrow = today + dt.timedelta(days=1)
|
||||||
|
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,16 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -8,13 +8,14 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> tomorrow = today + dt.timedelta(days=1)
|
>>> tomorrow = today + dt.timedelta(days=1)
|
||||||
|
|
||||||
|
|||||||
@@ -7,13 +7,12 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,17 @@ Customer Invoice Sequential
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> past_year = today - dt.timedelta(days=365)
|
>>> past_year = today - dt.timedelta(days=365)
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,15 @@ Invoice Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
>>> from trytond.modules.company.tests.tools import (create_company,
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
... get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (create_fiscalyear,
|
|
||||||
... create_chart, get_accounts)
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> tomorrow = today + dt.timedelta(days=1)
|
>>> tomorrow = today + dt.timedelta(days=1)
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts, create_tax,
|
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
|
||||||
... create_tax_code)
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -6,14 +6,13 @@ Imports::
|
|||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ Invoice Report Revision Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts, create_tax)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ Invoice Reschedule Lines Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> from proteus import Model
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ Reschedule line::
|
|||||||
>>> reschedule_lines.form.total_amount
|
>>> reschedule_lines.form.total_amount
|
||||||
Decimal('10.00')
|
Decimal('10.00')
|
||||||
>>> reschedule_lines.form.start_date = period.end_date
|
>>> reschedule_lines.form.start_date = period.end_date
|
||||||
>>> reschedule_lines.form.frequency ='monthly'
|
>>> reschedule_lines.form.frequency = 'monthly'
|
||||||
>>> reschedule_lines.form.number = 2
|
>>> reschedule_lines.form.number = 2
|
||||||
>>> reschedule_lines.execute('preview')
|
>>> reschedule_lines.execute('preview')
|
||||||
>>> reschedule_lines.execute('reschedule')
|
>>> reschedule_lines.execute('reschedule')
|
||||||
|
|||||||
@@ -5,17 +5,16 @@ Invoice Supplier Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from operator import attrgetter
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax, create_tax_code
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -5,17 +5,16 @@ Invoice Supplier Post Paid
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from operator import attrgetter
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -6,14 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts, create_tax)
|
... create_chart, create_fiscalyear, create_tax, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -5,15 +5,14 @@ Invoice with credit Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from operator import attrgetter
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, create_tax, create_tax_code, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax, create_tax_code
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,14 @@ Renew Fiscalyear Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from proteus import Model, Wizard
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
||||||
>>> from trytond.modules.account_invoice.tests.tools \
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... import set_fiscalyear_invoice_sequences
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ Invoice Correction Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts, create_tax
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -8,15 +8,14 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
>>> from trytond.modules.account_invoice_defer.tests.tools import (
|
>>> from trytond.modules.account_invoice_defer.tests.tools import (
|
||||||
... add_deferred_accounts)
|
... add_deferred_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ Invoice - Stock Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> from proteus import Model
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -6,17 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Report, Wizard
|
>>> from proteus import Model, Report
|
||||||
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.account_invoice_watermark.tests.tools import pdf_contains
|
||||||
>>> from trytond.modules.account_invoice_watermark.tests.tools import (
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
... pdf_contains)
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,10 @@ Imports::
|
|||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond import backend
|
>>> from trytond import backend
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
... create_company, get_company)
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> tomorrow = today + dt.timedelta(days=1)
|
>>> tomorrow = today + dt.timedelta(days=1)
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> tomorrow = today + dt.timedelta(days=1)
|
>>> tomorrow = today + dt.timedelta(days=1)
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, set_user, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,15 @@ Invoice Payment Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> tomorrow = today + dt.timedelta(days=1)
|
>>> tomorrow = today + dt.timedelta(days=1)
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ Imports::
|
|||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,14 @@ Account Payment Warnings Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> 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 (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -7,15 +7,14 @@ Imports::
|
|||||||
>>> import os
|
>>> import os
|
||||||
>>> import random
|
>>> import random
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> import braintree
|
>>> import braintree
|
||||||
>>> from braintree.test.nonces import Nonces
|
>>> from braintree.test.nonces import Nonces
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
>>> from trytond.tests.tools import (
|
>>> from proteus import Model
|
||||||
... activate_modules, assertEqual, assertTrue)
|
>>> from trytond.modules.account.tests.tools import create_chart, create_fiscalyear
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
... get_company
|
>>> from trytond.tests.tools import activate_modules, assertEqual, assertTrue
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -6,12 +6,13 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -6,15 +6,16 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
>>> yesterday = today - dt.timedelta(days=1)
|
>>> yesterday = today - dt.timedelta(days=1)
|
||||||
>>> first = today + dt.timedelta(days=1)
|
>>> first = today + dt.timedelta(days=1)
|
||||||
|
|||||||
+4
-5
@@ -5,15 +5,14 @@ Payment Clearing Invoice Amount to Pay
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ Account Payment Stripe Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import os
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
|
>>> import os
|
||||||
>>> import time
|
>>> import time
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> import stripe
|
>>> import stripe
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, create_fiscalyear
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ Account Payment Stripe Dispute Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import os
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
|
>>> import os
|
||||||
>>> import time
|
>>> import time
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> import stripe
|
>>> import stripe
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, create_fiscalyear
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> import os
|
>>> import os
|
||||||
>>> import time
|
|
||||||
>>> from decimal import Decimal
|
|
||||||
|
|
||||||
>>> import stripe
|
>>> import stripe
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ Account Payment Stripe Intent Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import os
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
|
>>> import os
|
||||||
>>> import time
|
>>> import time
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> import stripe
|
>>> import stripe
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, create_fiscalyear
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> 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_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,11 @@ Imports::
|
|||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
... create_company, get_company)
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,11 @@ Imports::
|
|||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
... create_company, get_company)
|
>>> from trytond.tests.tools import activate_modules
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,11 @@ Imports::
|
|||||||
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts, create_tax)
|
... create_chart, create_tax, get_accounts)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,15 @@ Account Statement Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from dateutil.relativedelta import relativedelta
|
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
|
>>> from proteus import Model, Report
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... create_payment_term, set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences, create_payment_term
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
|
>>> from proteus import Model, Report
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard, Report
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
|
||||||
... set_fiscalyear_invoice_sequences
|
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -4,15 +4,11 @@ Account Statement AEB43 Scenario
|
|||||||
|
|
||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> import datetime
|
>>> from proteus import Model, Wizard
|
||||||
>>> from decimal import Decimal
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
>>> from proteus import config, Model, Wizard
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
|
|
||||||
... create_chart, get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,11 @@ Account Statement Coda Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.tests.tools import activate_modules
|
>>> from trytond.tests.tools import activate_modules
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_chart, \
|
|
||||||
... get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,11 @@ Account Statement MT940 Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
|
||||||
... create_chart, get_accounts)
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,11 @@ Account Statement OFX Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import create_chart, \
|
|
||||||
... get_accounts
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
|
>>> from proteus import Model
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
|
||||||
... get_company
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
|
||||||
... create_chart, get_accounts)
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
+5
-4
@@ -6,14 +6,15 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
|
|
||||||
>>> from proteus import Model
|
>>> from proteus import Model
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ Imports::
|
|||||||
|
|
||||||
>>> import datetime as dt
|
>>> import datetime as dt
|
||||||
>>> from decimal import Decimal
|
>>> from decimal import Decimal
|
||||||
>>> from proteus import Model, Wizard
|
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from proteus import Model
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
>>> from trytond.modules.account.tests.tools import (
|
||||||
... create_fiscalyear, create_chart, get_accounts)
|
... create_chart, create_fiscalyear, get_accounts)
|
||||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||||
... set_fiscalyear_invoice_sequences)
|
... set_fiscalyear_invoice_sequences)
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
|
|
||||||
>>> today = dt.date.today()
|
>>> today = dt.date.today()
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,11 @@ Account Statement Sepa Scenario
|
|||||||
Imports::
|
Imports::
|
||||||
|
|
||||||
>>> from proteus import Model, Wizard
|
>>> from proteus import Model, Wizard
|
||||||
|
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||||
|
>>> from trytond.modules.company.tests.tools import create_company, get_company
|
||||||
|
>>> from trytond.modules.currency.tests.tools import get_currency
|
||||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||||
>>> from trytond.tools import file_open
|
>>> from trytond.tools import file_open
|
||||||
>>> from trytond.modules.currency.tests.tools import get_currency
|
|
||||||
>>> from trytond.modules.company.tests.tools import (
|
|
||||||
... create_company, get_company)
|
|
||||||
>>> from trytond.modules.account.tests.tools import (
|
|
||||||
... create_chart, get_accounts)
|
|
||||||
|
|
||||||
Activate modules::
|
Activate modules::
|
||||||
|
|
||||||
@@ -75,7 +73,8 @@ Create Statement Journal::
|
|||||||
Import CAMT.053 file::
|
Import CAMT.053 file::
|
||||||
|
|
||||||
>>> statement_import = Wizard('account.statement.import')
|
>>> statement_import = Wizard('account.statement.import')
|
||||||
>>> with file_open('account_statement_sepa/tests/camt.053.001.02.xml', mode='rb') as fp:
|
>>> with file_open(
|
||||||
|
... 'account_statement_sepa/tests/camt.053.001.02.xml', mode='rb') as fp:
|
||||||
... camt = fp.read()
|
... camt = fp.read()
|
||||||
>>> statement_import.form.file_ = camt
|
>>> statement_import.form.file_ = camt
|
||||||
>>> statement_import.form.file_format = 'camt_053_001'
|
>>> statement_import.form.file_format = 'camt_053_001'
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user