Commit 3a7d6211 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added acquisition for subordination


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04358128
...@@ -74,6 +74,17 @@ def setBaseAcquisition(self): ...@@ -74,6 +74,17 @@ def setBaseAcquisition(self):
pc[bc].setAcquisitionCopyValue(0) pc[bc].setAcquisitionCopyValue(0)
pc[bc].setAcquisitionAppendValue(0) pc[bc].setAcquisitionAppendValue(0)
pc[bc].setAcquisitionObjectIdList(['default_address']) pc[bc].setAcquisitionObjectIdList(['default_address'])
# Subordination acquisition
for bc in ('subordination', ):
if not hasattr(pc, bc):
addBaseCategory(pc, bc)
#pc[bc].setAcquisitionBaseCategoryList()
pc[bc].setAcquisitionPortalTypeList(['Career', ])
pc[bc].setAcquisitionMaskValue(0)
pc[bc].setAcquisitionCopyValue(0)
pc[bc].setAcquisitionAppendValue(0)
pc[bc].setAcquisitionSyncValue(1)
pc[bc].setAcquisitionObjectIdList(['default_career'])
return '<html><body><p>Acquisition Done</p></body></html>' return '<html><body><p>Acquisition Done</p></body></html>'
......
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