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

new method _getIndustrialPrice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@277 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 546e3f35
...@@ -163,3 +163,13 @@ un modele...""" ...@@ -163,3 +163,13 @@ un modele..."""
self.invokeFactory(type_name="Set Mapped Value",id=id) self.invokeFactory(type_name="Set Mapped Value",id=id)
return self.get(id) return self.get(id)
# Industrial prices
def _getIndustrialPrice(self, context):
"""
return PRI for Modle
"""
for pri in self.contentValues({'portal_type': 'Set Mapped Value'}):
if 'pri' in pri.getMappedValuePropertyList():
if pri.test(context):
return pri.getProperty('pri')
return None
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