Commit e226e448 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use the new base category 'property_mapping' instead of reusing the exising...

use the new base category 'property_mapping' instead of reusing the exising 'mapping' base category.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33338 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0952bee6
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="BaseCategory" module="Products.ERP5Type.Document.BaseCategory"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>acquisition_base_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>acquisition_portal_type</string> </key>
<value> <string>python:[]</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>property_mapping</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>property_mapping</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Base Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Property Mapping</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2010-03-03 kazuhiko
* add property_mapping base category.
2010-03-03 yo
* Allow OrderBuilder to specify a method to select simulation movements and methods to separate cells.
......
688
\ No newline at end of file
689
\ No newline at end of file
......@@ -17,6 +17,7 @@ grade
group
insurance_coverage
legal_parent
property_mapping
marital_status
market_segment
nationality
......
......@@ -61,7 +61,7 @@ class MirrorMovementGroup(MovementGroup):
applied_rule.getSpecialiseValue().objectValues(
portal_type='Mapped Property') or [])
if len(mapping_list) > 0:
movement.setMappingValue(mapping_list[0])
movement.setPropertyMappingValue(mapping_list[0])
return [[movement_list, {}]]
def _isMirrored(document):
......
......@@ -613,7 +613,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
security.declareProtected(Permissions.AccessContentsInformation,
'getMappedProperty')
def getMappedProperty(self, property):
mapping = self.getMappingValue()
mapping = self.getPropertyMappingValue()
if mapping is not None:
return mapping.getMappedProperty(self, property)
else:
......
......@@ -65,4 +65,4 @@ class Simulation:
'mode' : 'w' },
)
_categories = ('order', 'delivery', 'delivery_mode', 'incoterm', 'payment_mode', 'solver', 'specialise', 'mapping')
_categories = ('order', 'delivery', 'delivery_mode', 'incoterm', 'payment_mode', 'solver', 'specialise', 'property_mapping')
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