Commit aeff0fb8 authored by Jean-Paul Smets's avatar Jean-Paul Smets

added target source / dest / section


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1138 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7653de5
from Products.ERP5.ERP5Globals import * from Products.ERP5.ERP5Globals import *
from Products.ERP5.Tool.Category import addBaseCategory from Products.ERP5.Tool.Category import addBaseCategory
from Products.ERP5Type.Utils import convertToUpperCase
# This script defines init values for all base categories # This script defines init values for all base categories
...@@ -9,7 +10,9 @@ def setBaseAcquisition(self): ...@@ -9,7 +10,9 @@ def setBaseAcquisition(self):
# we should not use causality here because of production reports # we should not use causality here because of production reports
# for which source or destination can be None (ie. different from Production Order) # for which source or destination can be None (ie. different from Production Order)
for bc in ('source', 'destination', for bc in ('source', 'destination',
'source_section', 'destination_section', ): 'target_source', 'target_destination',
'source_section', 'destination_section',
'target_source_section', 'target_destination_section',):
if not hasattr(pc, bc): if not hasattr(pc, bc):
addBaseCategory(pc, bc) addBaseCategory(pc, bc)
pc[bc].setAcquisitionBaseCategoryList(('delivery', 'order', 'parent', )) pc[bc].setAcquisitionBaseCategoryList(('delivery', 'order', 'parent', ))
......
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