Commit 8a2bf6ac authored by Titouan Soulard's avatar Titouan Soulard

erp5_trade: use `cell` base id instead of `movement` for non-movements

parent 408faeec
......@@ -93,8 +93,8 @@
<key> <string>right</string> </key>
<value>
<list>
<string>my_inventory</string>
<string>my_quantity_unit</string>
<string>my_inventory</string>
<string>my_price</string>
<string>my_aggregate_title_list</string>
</list>
......
......@@ -9,7 +9,9 @@
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
<list>
<string>enabled</string>
</list>
</value>
</item>
<item>
......@@ -50,6 +52,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -69,6 +77,10 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_view_mode_price</string> </value>
......@@ -87,4 +99,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.Movement_isQuantityEnabled(disable_movement_check=True)</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -98,7 +98,7 @@
<dictionary>
<item>
<key> <string>cell_base_id</string> </key>
<value> <string>movement</string> </value>
<value> <string>cell</string> </value>
</item>
<item>
<key> <string>cell_portal_type</string> </key>
......
......@@ -97,7 +97,7 @@
<dictionary>
<item>
<key> <string>cell_base_id</string> </key>
<value> <string>movement</string> </value>
<value> <string>cell</string> </value>
</item>
<item>
<key> <string>cell_portal_type</string> </key>
......
......@@ -139,7 +139,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
inventory_line_cell_range = ["variation/" + variation for variation in inventory_line_variation_list]
inventory_line_value.setVariationValueList(inventory_line_variation_list)
inventory_line_value.setCellRange(inventory_line_cell_range, base_id="movement")
inventory_line_value.setCellRange(inventory_line_cell_range, base_id="cell")
for variation_relative_url, cell in line.items():
(quantity, price) = cell
......@@ -149,7 +149,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
variation=variation_relative_url,
inventory=quantity,
price=price,
base_id="movement",
base_id="cell",
)
# Supports tuples
else:
......
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