Commit 7328fa82 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

define getMappedProperty() that can be called from OrderBuilder.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c692e68
...@@ -477,6 +477,12 @@ class FakeMovement: ...@@ -477,6 +477,12 @@ class FakeMovement:
return self.__movement_list[0].getVariationCategoryList( return self.__movement_list[0].getVariationCategoryList(
omit_optional_variation=omit_optional_variation, **kw) omit_optional_variation=omit_optional_variation, **kw)
def getMappedProperty(self, property):
if property == 'quantity':
return self.getQuantity()
else:
raise NotImplementedError
def edit(self, activate_kw=None, **kw): def edit(self, activate_kw=None, **kw):
""" """
Written in order to call edit in delivery builder, Written in order to call edit in delivery builder,
......
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