Commit 2da7737b authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_travel_expense: Fix jio Queries

* This kind of query: 'foo:("bar", "couscous")' is currently not supported by query storage
parent 175bdf8d
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
CACHE MANIFEST\n CACHE MANIFEST\n
# generated on Fri, 24 March 2017 11:46:33 +0000\n # generated on Fri, 24 August 2017 11:46:33 +0000\n
# XXX + fonts\n # XXX + fonts\n
# images/ajax-loader.gif\n # images/ajax-loader.gif\n
# version 1.0\n # version 1.0\n
...@@ -348,7 +348,7 @@ NETWORK:\n ...@@ -348,7 +348,7 @@ NETWORK:\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>962.4237.4185.13038</string> </value> <value> <string>962.4237.40225.21589</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -366,7 +366,7 @@ NETWORK:\n ...@@ -366,7 +366,7 @@ NETWORK:\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1505315376.77</float> <float>1505399179.25</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -290,11 +290,11 @@ ...@@ -290,11 +290,11 @@
type: "replicate", type: "replicate",
// XXX This drop the signature lists... // XXX This drop the signature lists...
query: { query: {
query: '(portal_type: "Expense Record" AND simulation_state:("draft","sent","stopped")) ' + query: '(portal_type: "Expense Record" AND (simulation_state:"draft" OR simulation_state:"sent" OR simulation_state:"stopped")) ' +
'OR (portal_type: "Travel Request Record" AND simulation_state:("draft","sent","stopped")) ' + 'OR (portal_type: "Travel Request Record" AND (simulation_state:"draft" OR simulation_state:"sent" OR simulation_state:"stopped")) ' +
'OR (portal_type: "Leave Report Record" AND simulation_state:"stopped") ' + 'OR (portal_type: "Leave Report Record" AND simulation_state:"stopped") ' +
'OR (portal_type: "Leave Request Record" AND simulation_state:("draft","sent","stopped")) ' + 'OR (portal_type: "Leave Request Record" AND (simulation_state:"draft" OR simulation_state:"sent" OR simulation_state:"stopped")) ' +
'OR (portal_type: "Localisation Record" AND simulation_state:("draft","stopped")) ' + 'OR (portal_type: "Localisation Record" AND (simulation_state:"draft" OR simulation_state:"stopped")) ' +
'OR (portal_type: "Currency" AND validation_state:"validated") ' + 'OR (portal_type: "Currency" AND validation_state:"validated") ' +
'OR (portal_type: "Service" AND validation_state:"validated") ' + 'OR (portal_type: "Service" AND validation_state:"validated") ' +
'OR (portal_type: "Person" AND id: "' + me.split("/")[1] + '")', 'OR (portal_type: "Person" AND id: "' + me.split("/")[1] + '")',
......
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.29586.17351.25838</string> </value> <value> <string>961.60854.27381.38212</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1502904164.51</float> <float>1505399165.67</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
title: 'State' title: 'State'
}], }],
query: { query: {
query: '(simulation_state:"draft" OR sync_flag:"0") AND portal_type: ("Expense Record", "Travel Request Record", "Leave Report Record", "Leave Request Record") ', query: '(simulation_state:"draft" OR sync_flag:"0") AND (portal_type: "Expense Record" OR portal_type:"Travel Request Record" OR portal_type:"Leave Report Record" OR portal_type:"Leave Request Record") ',
select_list: ['comment', 'portal_type', 'state'], select_list: ['comment', 'portal_type', 'state'],
sort_on: [["modification_date", "descending"]] sort_on: [["modification_date", "descending"]]
} }
......
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>supercedriclen</string> </value> <value> <string>cedric.le.ninivin</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>957.21009.18378.49715</string> </value> <value> <string>961.60854.27381.38212</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1487092895.73</float> <float>1505399193.45</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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