Commit ee854207 authored by Guillaume Michon's avatar Guillaume Michon

Create amortisation base categories (although name is not perfect)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1502 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8234fade
......@@ -85,6 +85,17 @@ def setBaseAcquisition(self):
pc[bc].setAcquisitionAppendValue(0)
pc[bc].setAcquisitionSyncValue(1)
pc[bc].setAcquisitionObjectIdList(['default_career'])
# Immobilisation acquisition
for bc in ('input_account', 'output_account', 'immobilisation_account',
'amortisation_account', 'depreciation_account', 'vat_account',
'amortisation_type', ):
if not hasattr(pc, bc):
addBaseCategory(pc, bc)
pc[bc].setAcquisitionBaseCategoryList('parent',)
pc[bc].setAcquisitionPortalTypeList(item_type_list)
pc[bc].setAcquisitionMaskValue(1)
pc[bc].setAcquisitionCopyValue(1)
pc[bc].setAcquisitionAppendValue(0)
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