Commit 02a9f49d authored by Jean-Paul Smets's avatar Jean-Paul Smets

no causality acq for nodes and sections


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@650 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27b71647
......@@ -5,10 +5,21 @@ from Products.ERP5.Tool.Category import addBaseCategory
def setBaseAcquisition(self):
pc = self.portal_categories
# Source and destination are defined by delivery, order, parent or causality
# Source and destination are defined by delivery, order, parent
# we should not use causality here because of production reports
# for which source or destination can be None (ie. different from Production Order)
for bc in ('source', 'destination',
'source_section', 'destination_section',
'source_payment', 'destination_payment',
'source_section', 'destination_section', ):
if not hasattr(pc, bc):
addBaseCategory(pc, bc)
pc[bc].setAcquisitionBaseCategoryList(('delivery', 'order', 'parent', ))
pc[bc].setAcquisitionPortalTypeList(movement_or_item_or_delivery_or_order_or_invoice_type_list)
pc[bc].setAcquisitionMaskValue(1)
pc[bc].setAcquisitionCopyValue(0)
pc[bc].setAcquisitionAppendValue(0)
# Other sources and destination are defined by delivery, order, parent or causality
# None of those base categories should be set to None (incl. section)
for bc in ('source_payment', 'destination_payment',
'source_decision', 'destination_decision',
'source_administration', 'destination_administration', ):
if not hasattr(pc, bc):
......
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