Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
69b578f1
Commit
69b578f1
authored
Jan 05, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make invoice builder global.
parent
552855e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
149 additions
and
1 deletion
+149
-1
bt5/erp5_advanced_invoicing/SkinTemplateItem/portal_skins/erp5_advanced_invoicing.xml
...SkinTemplateItem/portal_skins/erp5_advanced_invoicing.xml
+21
-0
bt5/erp5_advanced_invoicing/SkinTemplateItem/portal_skins/erp5_advanced_invoicing/Alarm_buildInvoice.xml
...rtal_skins/erp5_advanced_invoicing/Alarm_buildInvoice.xml
+95
-0
bt5/erp5_advanced_invoicing/bt/revision
bt5/erp5_advanced_invoicing/bt/revision
+1
-1
product/ERP5/tests/testAdvancedInvoicing.py
product/ERP5/tests/testAdvancedInvoicing.py
+32
-0
No files found.
bt5/erp5_advanced_invoicing/SkinTemplateItem/portal_skins/erp5_advanced_invoicing.xml
View file @
69b578f1
...
@@ -6,12 +6,33 @@
...
@@ -6,12 +6,33 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
_objects
</string>
</key>
<key>
<string>
_objects
</string>
</key>
<value>
<value>
<tuple/>
<tuple/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
20.0
</float>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_advanced_invoicing
</string>
</value>
<value>
<string>
erp5_advanced_invoicing
</string>
</value>
...
...
bt5/erp5_advanced_invoicing/SkinTemplateItem/portal_skins/erp5_advanced_invoicing/Alarm_buildInvoice.xml
0 → 100644
View file @
69b578f1
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<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
\'advanced_purchase_invoice_builder\',\n
\'advanced_purchase_invoice_transaction_builder\',\n
\'advanced_sale_invoice_builder\',\n
\'advanced_sale_invoice_transaction_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></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Alarm_buildInvoice
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_advanced_invoicing/bt/revision
View file @
69b578f1
102
103
\ No newline at end of file
\ No newline at end of file
product/ERP5/tests/testAdvancedInvoicing.py
View file @
69b578f1
...
@@ -80,6 +80,8 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
...
@@ -80,6 +80,8 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
"""
"""
stepStartPackingList
stepStartPackingList
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepStartRelatedInvoice
stepStartRelatedInvoice
stepTic
stepTic
"""
"""
...
@@ -292,6 +294,8 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
...
@@ -292,6 +294,8 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
stepStartPackingList
stepStartPackingList
stepStopPackingList
stepStopPackingList
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepChangeQuantityDoubledOnInvoice
stepChangeQuantityDoubledOnInvoice
stepTic
stepTic
stepCheckDivergedQuantityOnInvoice
stepCheckDivergedQuantityOnInvoice
...
@@ -318,6 +322,8 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
...
@@ -318,6 +322,8 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
stepStartPackingList
stepStartPackingList
stepStopPackingList
stepStopPackingList
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepChangeQuantityDoubledOnInvoice
stepChangeQuantityDoubledOnInvoice
stepTic
stepTic
stepCheckDivergedQuantityOnInvoice
stepCheckDivergedQuantityOnInvoice
...
@@ -502,6 +508,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -502,6 +508,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepStartPackingList
stepStartPackingList
stepStartNewPackingList
stepStartNewPackingList
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckTwoInvoices
stepCheckTwoInvoices
stepRemoveDateMovementGroupForAdvancedTransactionBuilder
stepRemoveDateMovementGroupForAdvancedTransactionBuilder
stepStartTwoInvoices
stepStartTwoInvoices
...
@@ -530,6 +538,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -530,6 +538,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepStartPackingList
stepStartPackingList
stepCheckInvoicingRule
stepCheckInvoicingRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated
stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency
stepCheckInvoicesConsistency
...
@@ -553,6 +563,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -553,6 +563,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepCheckInvoicingRule
stepCheckInvoicingRule
stepCheckInvoiceTransactionRule
stepCheckInvoiceTransactionRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepDecreaseInvoiceLineQuantity
stepDecreaseInvoiceLineQuantity
...
@@ -594,6 +606,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -594,6 +606,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepCheckInvoicingRule
stepCheckInvoicingRule
stepCheckInvoiceTransactionRule
stepCheckInvoiceTransactionRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepChangeInvoiceStartDate
stepChangeInvoiceStartDate
...
@@ -639,6 +653,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -639,6 +653,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepCheckInvoicingRule
stepCheckInvoicingRule
stepCheckInvoiceTransactionRule
stepCheckInvoiceTransactionRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepStopPackingList
stepStopPackingList
...
@@ -709,6 +725,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -709,6 +725,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepCheckInvoicingRule
stepCheckInvoicingRule
stepCheckInvoiceTransactionRule
stepCheckInvoiceTransactionRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepStopPackingList
stepStopPackingList
...
@@ -786,6 +804,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -786,6 +804,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepCheckInvoicingRule
stepCheckInvoicingRule
stepCheckInvoiceTransactionRule
stepCheckInvoiceTransactionRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepStopPackingList
stepStopPackingList
stepTic
stepTic
...
@@ -854,6 +874,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -854,6 +874,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepCheckInvoicingRule
stepCheckInvoicingRule
stepCheckInvoiceTransactionRule
stepCheckInvoiceTransactionRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepStopPackingList
stepStopPackingList
stepTic
stepTic
...
@@ -945,6 +967,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -945,6 +967,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepStartPackingList
stepStartPackingList
stepCheckInvoicingRule
stepCheckInvoicingRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated
stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency
stepCheckInvoicesConsistency
...
@@ -977,6 +1001,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -977,6 +1001,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepStartPackingList
stepStartPackingList
stepCheckInvoicingRule
stepCheckInvoicingRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepRebuildAndCheckNothingIsCreated
stepRebuildAndCheckNothingIsCreated
stepCheckInvoicesConsistency
stepCheckInvoicesConsistency
...
@@ -1006,6 +1032,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -1006,6 +1032,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepStartPackingList
stepStartPackingList
stepCheckInvoicingRule
stepCheckInvoicingRule
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepCheckInvoiceBuilding
stepCheckInvoiceBuilding
stepCheckInvoicesConsistency
stepCheckInvoicesConsistency
stepCheckPackingListInvoice
stepCheckPackingListInvoice
...
@@ -1027,6 +1055,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
...
@@ -1027,6 +1055,8 @@ class TestAdvancedSaleInvoice(TestAdvancedInvoice):
stepTic
stepTic
stepStartPackingList
stepStartPackingList
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepChangeQuantityDoubledOnInvoice
stepChangeQuantityDoubledOnInvoice
stepTic
stepTic
stepCheckDivergedQuantityOnInvoice
stepCheckDivergedQuantityOnInvoice
...
@@ -1093,6 +1123,8 @@ class TestAdvancedPurchaseInvoice(TestAdvancedInvoice):
...
@@ -1093,6 +1123,8 @@ class TestAdvancedPurchaseInvoice(TestAdvancedInvoice):
"""
"""
stepReceivePackingList
stepReceivePackingList
stepTic
stepTic
stepInvoiceBuilderAlarm
stepTic
stepStartRelatedInvoice
stepStartRelatedInvoice
stepTic
stepTic
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment