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

new method getEan13Code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@278 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d58a63f8
......@@ -232,3 +232,16 @@ A VariatedReference."""
return self.get(id)
from SetMappedValue import SetMappedValue
class SetMappedValuePatch(SetMappedValue):
def getEan13Code(self):
"""
returns ean13 code for Coramy
"""
if hasattr(self, 'code_ean13'):
return self.code_ean13
return self._baseGetEan13Code()
SetMappedValue.getEan13Code = SetMappedValuePatch.getEan13Code
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