Commit 3b5fb4ac authored by Roque's avatar Roque

erp5_travel_expense: remove leaves days counter

See merge request nexedi/erp5!1505
parents 3379bd22 db138f5e
Pipeline #18164 failed with stage
in 0 seconds
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
<script src="gadget_officejs_page_leave_request_record_list.js"></script> <script src="gadget_officejs_page_leave_request_record_list.js"></script>
<script class="page-template" type="text/x-handlebars-template"> <script class="page-template" type="text/x-handlebars-template">
{{#if day_left}}
<p data-i18n="Leaves days left: ">Leaves days left: <span>{{day_left}}</span></p>
{{/if}}
<div class="leave_request_listbox"></div> <div class="leave_request_listbox"></div>
</script> </script>
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>957.11901.58686.802</string> </value> <value> <string>995.60736.17113.256</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1486546513.23</float> <float>1636047630.35</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -75,16 +75,6 @@ ...@@ -75,16 +75,6 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.jio_allDocs({
query: 'portal_type: "Leave Report Record"',
select_list: ["confirmed_leaves_days_left"],
});
})
.push(function (result) {
var options = {};
if (result.data.total_rows > 0) {
options.day_left = result.data.rows[0].value.confirmed_leaves_days_left;
}
return gadget.translateHtml(template(options)); return gadget.translateHtml(template(options));
}) })
.push(function (html) { .push(function (html) {
......
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>957.11870.44460.28228</string> </value> <value> <string>995.60736.17113.256</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1486546441.25</float> <float>1636047628.06</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