Commit a6b27831 authored by Jérome Perrin's avatar Jérome Perrin

the pricing sort method of resource must follow

Movement_getPriceCalculationOperandDict sort methods (use section and not
nodes)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23066 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0c546c99
...@@ -560,10 +560,10 @@ class Resource(XMLMatrix, Variated): ...@@ -560,10 +560,10 @@ class Resource(XMLMatrix, Variated):
return p return p
def _pricingSortMethod(self, a, b): def _pricingSortMethod(self, a, b):
# Simple method : the one that defines a destination wins # Simple method : the one that defines a destination section wins
if a.getDestination(): if a.getDestinationSection():
return -1 # a defines a destination and wins return -1 # a defines a destination section and wins
return 1 # a defines no destination ans loses return 1 # a defines no destination section and loses
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPriceParameterDict') 'getPriceParameterDict')
......
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