Commit 7a670a9f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

move delivery builders from erp5_simplified_invoicing to erp5_simulation_test...

move delivery builders from erp5_simplified_invoicing to erp5_simulation_test and make invoice builder global.
parent 8f53590e
2012-01-05 Kazuhiko
* move builders from erp5_simplified_invoicing to erp5_simulation_test BT.
2010-03-02 yo 2010-03-02 yo
* Take auto_planned into account for the views of Sale Invoice Transaction and Purchase Invoice Transaction. * Take auto_planned into account for the views of Sale Invoice Transaction and Purchase Invoice Transaction.
......
56 57
\ No newline at end of file \ No newline at end of file
portal_deliveries/purchase_invoice_builder
portal_deliveries/purchase_invoice_builder/**
portal_deliveries/purchase_invoice_transaction_builder
portal_deliveries/purchase_invoice_transaction_builder/**
portal_deliveries/purchase_invoice_transaction_trade_model_builder
portal_deliveries/purchase_invoice_transaction_trade_model_builder/**
portal_deliveries/sale_invoice_builder
portal_deliveries/sale_invoice_builder/**
portal_deliveries/sale_invoice_transaction_builder
portal_deliveries/sale_invoice_transaction_builder/**
portal_deliveries/sale_invoice_transaction_trade_model_builder
portal_deliveries/sale_invoice_transaction_trade_model_builder/**
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Alarm" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>active_sense_method_id</string> </key>
<value> <string>Alarm_buildInvoice</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>invoice_builder_alarm</string> </value>
</item>
<item>
<key> <string>periodicity_hour</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>periodicity_minute</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>periodicity_minute_frequency</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>periodicity_month</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>periodicity_month_day</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>periodicity_start_date</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>946684800.0</float>
<string>GMT</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>periodicity_week</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Alarm</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Invoice Builder Alarm</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -138,10 +138,6 @@ ...@@ -138,10 +138,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>purchase_invoice_builder</string> </value> <value> <string>purchase_invoice_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -131,10 +131,6 @@ ...@@ -131,10 +131,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>purchase_invoice_transaction_builder</string> </value> <value> <string>purchase_invoice_transaction_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -129,10 +129,6 @@ ...@@ -129,10 +129,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>purchase_invoice_transaction_trade_model_builder</string> </value> <value> <string>purchase_invoice_transaction_trade_model_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -138,10 +138,6 @@ ...@@ -138,10 +138,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>sale_invoice_builder</string> </value> <value> <string>sale_invoice_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>4</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -131,10 +131,6 @@ ...@@ -131,10 +131,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>sale_invoice_transaction_builder</string> </value> <value> <string>sale_invoice_transaction_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>6</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -129,10 +129,6 @@ ...@@ -129,10 +129,6 @@
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>sale_invoice_transaction_trade_model_builder</string> </value> <value> <string>sale_invoice_transaction_trade_model_builder</string> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value> <value> <string>Delivery Builder</string> </value>
......
...@@ -50,17 +50,44 @@ ...@@ -50,17 +50,44 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>packing_list = state_change[\'object\']\n <value> <string># This script is a sample of alarm script that invokes builders.\n
packing_list.Delivery_expandAndBuild()\n # You may need to modify builder ID\'s according to your application.\n
\n
portal = context.getPortalObject()\n
delivery_tool = portal.portal_deliveries\n
\n
builder_id_list = (\n
\'purchase_invoice_builder\',\n
\'purchase_invoice_transaction_trade_model_builder\',\n
\'sale_invoice_builder\',\n
\'sale_invoice_transaction_trade_model_builder\',\n
)\n
\n
for builder_id in builder_id_list:\n
builder = getattr(delivery_tool, builder_id, None)\n
if builder is None:\n
continue\n
delivery_portal_type = builder.getDeliveryPortalType()\n
serialization_tag = \'build:%s\' % delivery_portal_type\n
index_tag = \'index:%s\' % delivery_portal_type\n
after_tag = index_tag\n
after_method_id = (\'recursiveImmediateReindexObject\',\n
\'immediateReindexObject\',\n
\'Delivery_updateAppliedRule\')\n
activate_kw = dict(tag=index_tag)\n
builder.activate(\n
serialization_tag=serialization_tag,\n
after_tag=after_tag,\n
after_method_id=after_method_id).build(activate_kw=activate_kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>PackingList_buildInvoice</string> </value> <value> <string>Alarm_buildInvoice</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
2012-01-05 Kazuhiko 2012-01-05 Kazuhiko
* move builders from erp5_simplified_invoicing to erp5_simulation_test BT.
* move builders from erp5_trade to erp5_simulation_test BT. * move builders from erp5_trade to erp5_simulation_test BT.
* call builders globally by alarms.
2010-08-10 JPS 2010-08-10 JPS
* move solvers to path * move solvers to path
\ No newline at end of file
29 30
\ No newline at end of file \ No newline at end of file
...@@ -2,14 +2,27 @@ business_process_module/erp5_default_business_process ...@@ -2,14 +2,27 @@ business_process_module/erp5_default_business_process
business_process_module/erp5_default_business_process/** business_process_module/erp5_default_business_process/**
business_process_module/erp5_default_task_business_process business_process_module/erp5_default_task_business_process
business_process_module/erp5_default_task_business_process/** business_process_module/erp5_default_task_business_process/**
portal_alarms/invoice_builder_alarm
portal_alarms/packing_list_builder_alarm portal_alarms/packing_list_builder_alarm
portal_categories/trade_phase/default portal_categories/trade_phase/default
portal_categories/trade_phase/default/** portal_categories/trade_phase/default/**
portal_categories/trade_state/** portal_categories/trade_state/**
portal_deliveries/internal_packing_list_builder portal_deliveries/internal_packing_list_builder
portal_deliveries/internal_packing_list_builder/** portal_deliveries/internal_packing_list_builder/**
portal_deliveries/purchase_invoice_builder
portal_deliveries/purchase_invoice_builder/**
portal_deliveries/purchase_invoice_transaction_builder
portal_deliveries/purchase_invoice_transaction_builder/**
portal_deliveries/purchase_invoice_transaction_trade_model_builder
portal_deliveries/purchase_invoice_transaction_trade_model_builder/**
portal_deliveries/purchase_packing_list_builder portal_deliveries/purchase_packing_list_builder
portal_deliveries/purchase_packing_list_builder/** portal_deliveries/purchase_packing_list_builder/**
portal_deliveries/sale_invoice_builder
portal_deliveries/sale_invoice_builder/**
portal_deliveries/sale_invoice_transaction_builder
portal_deliveries/sale_invoice_transaction_builder/**
portal_deliveries/sale_invoice_transaction_trade_model_builder
portal_deliveries/sale_invoice_transaction_trade_model_builder/**
portal_deliveries/sale_packing_list_builder portal_deliveries/sale_packing_list_builder
portal_deliveries/sale_packing_list_builder/** portal_deliveries/sale_packing_list_builder/**
portal_rules/new_accounting_transaction_root_simulation_rule portal_rules/new_accounting_transaction_root_simulation_rule
......
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
</item> </item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>actbox_name</string> </key> <key> <string>actbox_name</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -20,7 +24,7 @@ ...@@ -20,7 +24,7 @@
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <string>PackingList_buildInvoice</string> </value> <value> <string>PackingList_updateAppliedRule</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
</item> </item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>actbox_name</string> </key> <key> <string>actbox_name</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -20,7 +24,7 @@ ...@@ -20,7 +24,7 @@
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <string>PackingList_buildInvoice</string> </value> <value> <string>PackingList_updateAppliedRule</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
1147 1148
\ No newline at end of file \ No newline at end of file
...@@ -1157,6 +1157,10 @@ class TestInvoiceMixin(TestPackingListMixin): ...@@ -1157,6 +1157,10 @@ class TestInvoiceMixin(TestPackingListMixin):
id='income', source='account_module/sale', id='income', source='account_module/sale',
destination='account_module/purchase', quantity=1665) destination='account_module/purchase', quantity=1665)
def stepInvoiceBuilderAlarm(self, sequence=None,
sequence_list=None, **kw):
self.portal.portal_alarms.invoice_builder_alarm.activeSense()
class TestInvoice(TestInvoiceMixin): class TestInvoice(TestInvoiceMixin):
"""Test methods for sale and purchase invoice. """Test methods for sale and purchase invoice.
Subclasses must defines portal types to use. Subclasses must defines portal types to use.
...@@ -1834,6 +1838,9 @@ class TestInvoice(TestInvoiceMixin): ...@@ -1834,6 +1838,9 @@ class TestInvoice(TestInvoiceMixin):
related_packing_list.stop() related_packing_list.stop()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
related_invoice = related_packing_list.getCausalityRelatedValue( related_invoice = related_packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
...@@ -1930,6 +1937,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -1930,6 +1937,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
no_order_packing_list.stop() no_order_packing_list.stop()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
related_invoice = no_order_packing_list.getCausalityRelatedValue( related_invoice = no_order_packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
...@@ -2027,6 +2037,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2027,6 +2037,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
related_packing_list.stop() related_packing_list.stop()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
related_invoice = related_packing_list.getCausalityRelatedValue( related_invoice = related_packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
...@@ -2126,6 +2139,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2126,6 +2139,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
related_packing_list.stop() related_packing_list.stop()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
related_invoice = related_packing_list.getCausalityRelatedValue( related_invoice = related_packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
...@@ -2216,6 +2232,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2216,6 +2232,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
related_packing_list.stop() related_packing_list.stop()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
related_invoice = related_packing_list.getCausalityRelatedValue( related_invoice = related_packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
self.assertNotEquals(related_invoice, None) self.assertNotEquals(related_invoice, None)
...@@ -2304,6 +2323,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2304,6 +2323,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
related_packing_list.deliver() related_packing_list.deliver()
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
related_invoice = related_packing_list.getCausalityRelatedValue( related_invoice = related_packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
self.assertNotEquals(related_invoice, None) self.assertNotEquals(related_invoice, None)
...@@ -2320,6 +2342,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2320,6 +2342,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
def _acceptDivergenceOnInvoice(self, invoice, divergence_list): def _acceptDivergenceOnInvoice(self, invoice, divergence_list):
print invoice, divergence_list
self._solveDivergence(invoice, 'quantity', 'Accept Solver') self._solveDivergence(invoice, 'quantity', 'Accept Solver')
def test_accept_quantity_divergence_on_invoice_with_stopped_packing_list( def test_accept_quantity_divergence_on_invoice_with_stopped_packing_list(
...@@ -2338,6 +2361,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2338,6 +2361,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
self.assertEquals('stopped', packing_list.getSimulationState()) self.assertEquals('stopped', packing_list.getSimulationState())
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
invoice = packing_list.getCausalityRelatedValue( invoice = packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
...@@ -2376,6 +2402,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2376,6 +2402,7 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
self.assertEquals('solved', packing_list.getCausalityState()) self.assertEquals('solved', packing_list.getCausalityState())
def _adoptDivergenceOnInvoice(self, invoice, divergence_list): def _adoptDivergenceOnInvoice(self, invoice, divergence_list):
print invoice, divergence_list
self._solveDivergence(invoice, 'quantity', 'Adopt Solver') self._solveDivergence(invoice, 'quantity', 'Adopt Solver')
def test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list( def test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list(
...@@ -2397,6 +2424,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent( ...@@ -2397,6 +2424,9 @@ self.portal.getDefaultModule(self.packing_list_portal_type).newContent(
self.assertEquals('stopped', packing_list.getSimulationState()) self.assertEquals('stopped', packing_list.getSimulationState())
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
invoice = packing_list.getCausalityRelatedValue( invoice = packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
...@@ -2606,6 +2636,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2606,6 +2636,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
...@@ -2636,10 +2668,14 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2636,10 +2668,14 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepStartNewPackingList stepStartNewPackingList
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckTwoInvoices stepCheckTwoInvoices
stepRemoveDateMovementGroupForTransactionBuilder stepRemoveDateMovementGroupForTransactionBuilder
stepStartTwoInvoices stepStartTwoInvoices
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckTwoInvoicesTransactionLines stepCheckTwoInvoicesTransactionLines
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
""") """)
...@@ -2669,6 +2705,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2669,6 +2705,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepEditInvoice stepEditInvoice
stepCheckInvoiceRuleNotAppliedOnInvoiceEdit stepCheckInvoiceRuleNotAppliedOnInvoiceEdit
...@@ -2714,6 +2752,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2714,6 +2752,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
...@@ -2738,6 +2778,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2738,6 +2778,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
...@@ -2767,6 +2809,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2767,6 +2809,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
...@@ -2789,6 +2833,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2789,6 +2833,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepDecreaseInvoiceLineQuantity stepDecreaseInvoiceLineQuantity
...@@ -2831,6 +2877,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2831,6 +2877,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepChangeInvoiceStartDate stepChangeInvoiceStartDate
...@@ -2872,6 +2920,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2872,6 +2920,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
stepTic stepTic
...@@ -2925,6 +2975,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2925,6 +2975,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
...@@ -2984,6 +3036,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -2984,6 +3036,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
...@@ -3026,6 +3080,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3026,6 +3080,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
...@@ -3122,6 +3178,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3122,6 +3178,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
stepTic stepTic
...@@ -3163,6 +3221,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3163,6 +3221,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
stepTic stepTic
...@@ -3214,6 +3274,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3214,6 +3274,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
stepTic stepTic
...@@ -3281,6 +3343,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3281,6 +3343,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepCheckInvoicingRule stepCheckInvoicingRule
stepCheckInvoiceTransactionRule stepCheckInvoiceTransactionRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepStopPackingList stepStopPackingList
stepTic stepTic
...@@ -3368,6 +3432,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3368,6 +3432,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
...@@ -3396,6 +3462,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3396,6 +3462,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepAddWrongInvoiceLines stepAddWrongInvoiceLines
stepTic stepTic
...@@ -3421,6 +3489,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3421,6 +3489,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
stepStartPackingList stepStartPackingList
stepCheckInvoicingRule stepCheckInvoicingRule
stepTic stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding stepCheckInvoiceBuilding
stepCheckInvoicesConsistency stepCheckInvoicesConsistency
stepCheckPackingListInvoice stepCheckPackingListInvoice
...@@ -3450,6 +3520,9 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase): ...@@ -3450,6 +3520,9 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
self.assertEquals('started', packing_list.getSimulationState()) self.assertEquals('started', packing_list.getSimulationState())
transaction.commit() transaction.commit()
self.tic() self.tic()
self.stepInvoiceBuilderAlarm()
transaction.commit()
self.tic()
invoice = packing_list.getCausalityRelatedValue( invoice = packing_list.getCausalityRelatedValue(
portal_type=self.invoice_portal_type) portal_type=self.invoice_portal_type)
......
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