Commit 4c0aea47 authored by Jérome Perrin's avatar Jérome Perrin

accounting_ui_test: Rename AccountingZuite_createDocument to...

accounting_ui_test: Rename AccountingZuite_createDocument to AccountingModule_createAccountingTestDocument
parent 56958777
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>AccountingZuite_createDocument</string> </value> <value> <string>AccountingModule_createAccountingTestDocument</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -29,11 +29,11 @@ def get_object_by_title(portal_type, title): ...@@ -29,11 +29,11 @@ def get_object_by_title(portal_type, title):
bank1 = get_object_by_title(portal_type='Bank Account', title='Bank1') bank1 = get_object_by_title(portal_type='Bank Account', title='Bank1')
if bank1 is None: if bank1 is None:
bank1 = portal.AccountingZuite_createDocument( bank1 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Bank Account', title='Bank1', simulation_state='validated', portal_type='Bank Account', title='Bank1', simulation_state='validated',
parent=organisation_module.my_organisation) parent=organisation_module.my_organisation)
purchase1 = portal.AccountingZuite_createDocument( purchase1 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Purchase Invoice Transaction', portal_type='Purchase Invoice Transaction',
title='Purchase invoice 1', title='Purchase invoice 1',
destination_reference='1', destination_reference='1',
...@@ -51,7 +51,7 @@ purchase1 = portal.AccountingZuite_createDocument( ...@@ -51,7 +51,7 @@ purchase1 = portal.AccountingZuite_createDocument(
destination_credit=500.0)), destination_credit=500.0)),
) )
sale2 = portal.AccountingZuite_createDocument( sale2 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction', portal_type='Sale Invoice Transaction',
title='Sale invoice 2', title='Sale invoice 2',
source_reference='2', source_reference='2',
...@@ -71,7 +71,7 @@ sale2 = portal.AccountingZuite_createDocument( ...@@ -71,7 +71,7 @@ sale2 = portal.AccountingZuite_createDocument(
portal.Zuite_waitForActivities() portal.Zuite_waitForActivities()
payment3 = portal.AccountingZuite_createDocument( payment3 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction', portal_type='Payment Transaction',
title='Payment 1', title='Payment 1',
source_reference='3', source_reference='3',
...@@ -90,7 +90,7 @@ payment3 = portal.AccountingZuite_createDocument( ...@@ -90,7 +90,7 @@ payment3 = portal.AccountingZuite_createDocument(
source_credit=500.0)), source_credit=500.0)),
) )
payment4 = portal.AccountingZuite_createDocument( payment4 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction', portal_type='Payment Transaction',
title='Payment 2', title='Payment 2',
source_reference='4', source_reference='4',
......
...@@ -19,7 +19,7 @@ today = DateTime(now.year(), now.month(), now.day()) + 8 * one_hour ...@@ -19,7 +19,7 @@ today = DateTime(now.year(), now.month(), now.day()) + 8 * one_hour
yesterday = today - one_day yesterday = today - one_day
tomorrow = today + one_day tomorrow = today + one_day
bank1 = context.AccountingZuite_createDocument( bank1 = context.AccountingModule_createAccountingTestDocument(
parent=organisation_module.my_organisation, parent=organisation_module.my_organisation,
portal_type='Bank Account', portal_type='Bank Account',
title='Bank1', title='Bank1',
...@@ -28,7 +28,7 @@ bank1 = context.AccountingZuite_createDocument( ...@@ -28,7 +28,7 @@ bank1 = context.AccountingZuite_createDocument(
bank2 = bank1 bank2 = bank1
if two_banks: if two_banks:
bank2 = context.AccountingZuite_createDocument( bank2 = context.AccountingModule_createAccountingTestDocument(
parent=organisation_module.my_organisation, parent=organisation_module.my_organisation,
portal_type='Bank Account', portal_type='Bank Account',
title='Bank2', title='Bank2',
...@@ -36,7 +36,7 @@ if two_banks: ...@@ -36,7 +36,7 @@ if two_banks:
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 1', title='Transaction 1',
source_reference='1', source_reference='1',
...@@ -52,7 +52,7 @@ context.AccountingZuite_createDocument( ...@@ -52,7 +52,7 @@ context.AccountingZuite_createDocument(
source_credit=100.0)), source_credit=100.0)),
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 2', title='Transaction 2',
source_reference='2', source_reference='2',
...@@ -70,7 +70,7 @@ context.AccountingZuite_createDocument( ...@@ -70,7 +70,7 @@ context.AccountingZuite_createDocument(
# in the period # in the period
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction', portal_type='Payment Transaction',
title='Transaction 3', title='Transaction 3',
source_reference='3', source_reference='3',
...@@ -87,7 +87,7 @@ context.AccountingZuite_createDocument( ...@@ -87,7 +87,7 @@ context.AccountingZuite_createDocument(
source_credit=300.0)), source_credit=300.0)),
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction', portal_type='Payment Transaction',
title='Transaction 4', title='Transaction 4',
destination_reference='4', destination_reference='4',
...@@ -106,7 +106,7 @@ context.AccountingZuite_createDocument( ...@@ -106,7 +106,7 @@ context.AccountingZuite_createDocument(
destination_credit=400.0)), destination_credit=400.0)),
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 5', title='Transaction 5',
source_reference='5', source_reference='5',
...@@ -123,7 +123,7 @@ context.AccountingZuite_createDocument( ...@@ -123,7 +123,7 @@ context.AccountingZuite_createDocument(
source_credit=500.0)), source_credit=500.0)),
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Purchase Invoice Transaction', portal_type='Purchase Invoice Transaction',
title='Transaction 6', title='Transaction 6',
destination_reference='6', destination_reference='6',
...@@ -143,7 +143,7 @@ context.AccountingZuite_createDocument( ...@@ -143,7 +143,7 @@ context.AccountingZuite_createDocument(
# another simulation state # another simulation state
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 7', title='Transaction 7',
source_reference='7', source_reference='7',
...@@ -162,7 +162,7 @@ context.AccountingZuite_createDocument( ...@@ -162,7 +162,7 @@ context.AccountingZuite_createDocument(
# after the period # after the period
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 8', title='Transaction 8',
source_reference='8', source_reference='8',
......
...@@ -10,7 +10,7 @@ yesterday = today - 1 ...@@ -10,7 +10,7 @@ yesterday = today - 1
tomorrow = today + 1 tomorrow = today + 1
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
simulation_state='delivered', simulation_state='delivered',
start_date=yesterday, start_date=yesterday,
...@@ -23,7 +23,7 @@ context.AccountingZuite_createDocument( ...@@ -23,7 +23,7 @@ context.AccountingZuite_createDocument(
"source_credit": 100} "source_credit": 100}
] ]
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction', portal_type='Sale Invoice Transaction',
title='First One', title='First One',
simulation_state='delivered', simulation_state='delivered',
...@@ -42,7 +42,7 @@ context.AccountingZuite_createDocument( ...@@ -42,7 +42,7 @@ context.AccountingZuite_createDocument(
"source_credit": 100.00}, "source_credit": 100.00},
] ]
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction', portal_type='Sale Invoice Transaction',
title='Second One', title='Second One',
simulation_state='delivered', simulation_state='delivered',
...@@ -65,7 +65,7 @@ context.AccountingZuite_createDocument( ...@@ -65,7 +65,7 @@ context.AccountingZuite_createDocument(
"source_credit": 200.00}, "source_credit": 200.00},
] ]
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction', portal_type='Sale Invoice Transaction',
title='Third One', title='Third One',
simulation_state='delivered', simulation_state='delivered',
...@@ -85,7 +85,7 @@ context.AccountingZuite_createDocument( ...@@ -85,7 +85,7 @@ context.AccountingZuite_createDocument(
"source_credit": 300.00}, "source_credit": 300.00},
] ]
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
simulation_state='delivered', simulation_state='delivered',
start_date=today, start_date=today,
...@@ -98,7 +98,7 @@ context.AccountingZuite_createDocument( ...@@ -98,7 +98,7 @@ context.AccountingZuite_createDocument(
"source_credit": 111}, "source_credit": 111},
] ]
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction', portal_type='Sale Invoice Transaction',
simulation_state='delivered', simulation_state='delivered',
destination_section_value=portal.organisation_module.client_2, destination_section_value=portal.organisation_module.client_2,
......
...@@ -46,7 +46,7 @@ else: ...@@ -46,7 +46,7 @@ else:
extra_kwargs_general = {} extra_kwargs_general = {}
extra_kwargs_detailed = {} extra_kwargs_detailed = {}
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 1', title='Transaction 1',
source_reference='1', source_reference='1',
...@@ -62,7 +62,7 @@ context.AccountingZuite_createDocument( ...@@ -62,7 +62,7 @@ context.AccountingZuite_createDocument(
**extra_kwargs_general **extra_kwargs_general
) )
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 2', title='Transaction 2',
source_reference='2', source_reference='2',
...@@ -78,7 +78,7 @@ context.AccountingZuite_createDocument( ...@@ -78,7 +78,7 @@ context.AccountingZuite_createDocument(
) )
if with_ledger: if with_ledger:
context.AccountingZuite_createDocument( context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction', portal_type='Accounting Transaction',
title='Transaction 3', title='Transaction 3',
source_reference='3', source_reference='3',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment