Commit 2b480e59 authored by Titouan Soulard's avatar Titouan Soulard

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

This reverts commit 9de19fcd.
parent b6bf5e8d
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_quantity_unit</string>
<string>my_inventory</string> <string>my_inventory</string>
<string>my_quantity_unit</string>
<string>my_price</string> <string>my_price</string>
<string>my_aggregate_title_list</string> <string>my_aggregate_title_list</string>
</list> </list>
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
<item> <item>
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list/>
<string>enabled</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -52,12 +50,6 @@ ...@@ -52,12 +50,6 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -77,10 +69,6 @@ ...@@ -77,10 +69,6 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_view_mode_price</string> </value> <value> <string>my_view_mode_price</string> </value>
...@@ -99,17 +87,4 @@ ...@@ -99,17 +87,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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> </ZopeData>
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>cell_base_id</string> </key> <key> <string>cell_base_id</string> </key>
<value> <string>cell</string> </value> <value> <string>movement</string> </value>
</item> </item>
<item> <item>
<key> <string>cell_portal_type</string> </key> <key> <string>cell_portal_type</string> </key>
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>cell_base_id</string> </key> <key> <string>cell_base_id</string> </key>
<value> <string>cell</string> </value> <value> <string>movement</string> </value>
</item> </item>
<item> <item>
<key> <string>cell_portal_type</string> </key> <key> <string>cell_portal_type</string> </key>
......
...@@ -157,7 +157,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -157,7 +157,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
inventory_line_cell_range = ["variation/" + variation for variation in inventory_line_variation_list] inventory_line_cell_range = ["variation/" + variation for variation in inventory_line_variation_list]
inventory_line_value.setVariationValueList(inventory_line_variation_list) inventory_line_value.setVariationValueList(inventory_line_variation_list)
inventory_line_value.setCellRange(inventory_line_cell_range, base_id="cell") inventory_line_value.setCellRange(inventory_line_cell_range, base_id="movement")
for variation_relative_url, cell in line.items(): for variation_relative_url, cell in line.items():
(quantity, price) = cell (quantity, price) = cell
...@@ -167,7 +167,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -167,7 +167,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
variation=variation_relative_url, variation=variation_relative_url,
inventory=quantity, inventory=quantity,
price=price, price=price,
base_id="cell", base_id="movement",
) )
# Supports tuples # Supports tuples
else: 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