Commit 5f258939 authored by Jérome Perrin's avatar Jérome Perrin

use node_uid, section_uid, payment_uid, function_uid, project_uid,

mirror_section_uid and mirror_node_uid instead of node, section, payment,
function, project, mirror_section, mirror_node


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25668 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35652b44
......@@ -85,10 +85,14 @@ class CategoryBudgetVariation(BudgetVariation):
continue
criterion_base_category, category_url = criterion_category.split('/', 1)
if criterion_base_category == base_category:
category_uid = self.getPortalObject().portal_categories\
.getCategoryUid(criterion_category)
# Different possible inventory axis here
if axis == 'movement':
return {'default_%s_uid' % base_category:
self.getPortalObject().portal_categories.getCategoryUid(criterion_category)}
return {'default_%s_uid' % base_category: category_uid}
if axis in ('node', 'section', 'payment', 'function', 'project',
'mirror_section', 'mirror_node' ):
return {'%s_uid' % axis: category_uid}
return {axis: criterion_category}
return dict()
......
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