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
* Take auto_planned into account for the views of Sale Invoice Transaction and Purchase Invoice Transaction.
......
56
\ No newline at end of file
57
\ 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 @@
<key> <string>id</string> </key>
<value> <string>purchase_invoice_builder</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value>
......
......@@ -131,10 +131,6 @@
<key> <string>id</string> </key>
<value> <string>purchase_invoice_transaction_builder</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value>
......
......@@ -129,10 +129,6 @@
<key> <string>id</string> </key>
<value> <string>purchase_invoice_transaction_trade_model_builder</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value>
......
......@@ -138,10 +138,6 @@
<key> <string>id</string> </key>
<value> <string>sale_invoice_builder</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>4</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value>
......
......@@ -131,10 +131,6 @@
<key> <string>id</string> </key>
<value> <string>sale_invoice_transaction_builder</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>6</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value>
......
......@@ -129,10 +129,6 @@
<key> <string>id</string> </key>
<value> <string>sale_invoice_transaction_trade_model_builder</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>2</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Delivery Builder</string> </value>
......
......@@ -50,17 +50,44 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>packing_list = state_change[\'object\']\n
packing_list.Delivery_expandAndBuild()\n
<value> <string># This script is a sample of alarm script that invokes builders.\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>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PackingList_buildInvoice</string> </value>
<value> <string>Alarm_buildInvoice</string> </value>
</item>
</dictionary>
</pickle>
......
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.
* call builders globally by alarms.
2010-08-10 JPS
* move solvers to path
\ No newline at end of file
29
\ No newline at end of file
30
\ No newline at end of file
......@@ -2,14 +2,27 @@ 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/**
portal_alarms/invoice_builder_alarm
portal_alarms/packing_list_builder_alarm
portal_categories/trade_phase/default
portal_categories/trade_phase/default/**
portal_categories/trade_state/**
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/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_rules/new_accounting_transaction_root_simulation_rule
......
......@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
......@@ -20,7 +24,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>PackingList_buildInvoice</string> </value>
<value> <string>PackingList_updateAppliedRule</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
......@@ -20,7 +24,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>PackingList_buildInvoice</string> </value>
<value> <string>PackingList_updateAppliedRule</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
1147
\ No newline at end of file
1148
\ No newline at end of file
This diff is collapsed.
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