Commit 0b7a086b authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp: total quantity&price takes too much time

total quantity and price calculate all lines, in a manufacturing order with 680 lines,
it takes ~50 seconds to open it
parent 22199961
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>editable</string> <string>editable</string>
<string>enabled</string>
<string>title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -76,6 +77,10 @@ ...@@ -76,6 +77,10 @@
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_money_quantity</string> </value> <value> <string>my_money_quantity</string> </value>
......
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>editable</string> <string>editable</string>
<string>enabled</string>
<string>title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -76,6 +77,10 @@ ...@@ -76,6 +77,10 @@
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_quantity</string> </value> <value> <string>my_quantity</string> </value>
......
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