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 @@
<value> <string encoding="cdata"><![CDATA[
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
# images/ajax-loader.gif\n
# version 1.0\n
......@@ -348,7 +348,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.4237.4185.13038</string> </value>
<value> <string>962.4237.40225.21589</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -366,7 +366,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1505315376.77</float>
<float>1505399179.25</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -290,11 +290,11 @@
type: "replicate",
// XXX This drop the signature lists...
query: {
query: '(portal_type: "Expense Record" AND simulation_state:("draft","sent","stopped")) ' +
'OR (portal_type: "Travel Request 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" OR simulation_state:"sent" OR 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: "Localisation Record" AND simulation_state:("draft","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" OR simulation_state:"stopped")) ' +
'OR (portal_type: "Currency" AND validation_state:"validated") ' +
'OR (portal_type: "Service" AND validation_state:"validated") ' +
'OR (portal_type: "Person" AND id: "' + me.split("/")[1] + '")',
......
......@@ -239,7 +239,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>961.29586.17351.25838</string> </value>
<value> <string>961.60854.27381.38212</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -257,7 +257,7 @@
</tuple>
<state>
<tuple>
<float>1502904164.51</float>
<float>1505399165.67</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -131,7 +131,7 @@
title: 'State'
}],
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'],
sort_on: [["modification_date", "descending"]]
}
......
......@@ -256,7 +256,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>supercedriclen</string> </value>
<value> <string>cedric.le.ninivin</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -270,7 +270,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>957.21009.18378.49715</string> </value>
<value> <string>961.60854.27381.38212</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -288,7 +288,7 @@
</tuple>
<state>
<tuple>
<float>1487092895.73</float>
<float>1505399193.45</float>
<string>UTC</string>
</tuple>
</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