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 @@ ...@@ -93,8 +93,8 @@
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_inventory</string>
<string>my_quantity_unit</string> <string>my_quantity_unit</string>
<string>my_inventory</string>
<string>my_price</string> <string>my_price</string>
<string>my_aggregate_title_list</string> <string>my_aggregate_title_list</string>
</list> </list>
......
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<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>
...@@ -50,6 +52,12 @@ ...@@ -50,6 +52,12 @@
<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>
...@@ -69,6 +77,10 @@ ...@@ -69,6 +77,10 @@
<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>
...@@ -87,4 +99,17 @@ ...@@ -87,4 +99,17 @@
</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>movement</string> </value> <value> <string>cell</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>movement</string> </value> <value> <string>cell</string> </value>
</item> </item>
<item> <item>
<key> <string>cell_portal_type</string> </key> <key> <string>cell_portal_type</string> </key>
......
...@@ -139,7 +139,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -139,7 +139,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="movement") inventory_line_value.setCellRange(inventory_line_cell_range, base_id="cell")
for variation_relative_url, cell in line.items(): for variation_relative_url, cell in line.items():
(quantity, price) = cell (quantity, price) = cell
...@@ -149,7 +149,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase): ...@@ -149,7 +149,7 @@ class TestInventoryModule(TestOrderMixin, ERP5TypeTestCase):
variation=variation_relative_url, variation=variation_relative_url,
inventory=quantity, inventory=quantity,
price=price, price=price,
base_id="movement", base_id="cell",
) )
# 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