mirror of https://github.com/OCA/web.git
[IMP] web_time_range_menu_custom: pre-commit auto fixes
parent
3fc8c83fe6
commit
3e7d72e6cd
|
@ -5,7 +5,7 @@ import {useBus} from "@web/core/utils/hooks";
|
|||
|
||||
const {Component, useState} = owl;
|
||||
import * as dates from "@web/search/utils/dates";
|
||||
const {DateTime} = luxon; // eslint-disable-line no-undef
|
||||
const {DateTime} = luxon;
|
||||
var ID_CUSTOM_DATE = 0;
|
||||
|
||||
/**
|
||||
|
|
|
@ -351,12 +351,12 @@ patch(dates, {
|
|||
globalGranularity === "year"
|
||||
? "years"
|
||||
: globalGranularity === "month"
|
||||
? "months"
|
||||
: globalGranularity === "week"
|
||||
? "weeks"
|
||||
: globalGranularity === "day"
|
||||
? "days"
|
||||
: "quarters";
|
||||
? "months"
|
||||
: globalGranularity === "week"
|
||||
? "weeks"
|
||||
: globalGranularity === "day"
|
||||
? "days"
|
||||
: "quarters";
|
||||
plusParam[key] = num;
|
||||
return [plusParam, selectedOptions];
|
||||
},
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
Custom period
|
||||
|
||||
<span class="o_submenu_switcher" data-id="__computed__">
|
||||
<span
|
||||
t-att-class="isOpen.value ? 'fa fa-caret-down' : 'fa fa-caret-right'"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
t-att-class="isOpen.value ? 'fa fa-caret-down' : 'fa fa-caret-right'"
|
||||
/>
|
||||
</span>
|
||||
</a>
|
||||
<t t-if="isOpen.value">
|
||||
<div id="add_custom_period_wrapper" class="d-table">
|
||||
|
@ -26,9 +26,11 @@
|
|||
t-as="field_item"
|
||||
t-key="field_item"
|
||||
>
|
||||
<option t-att-value="field_item"><span
|
||||
<option t-att-value="field_item">
|
||||
<span
|
||||
t-esc="env.searchModel.searchItems[field_item].description"
|
||||
/></option>
|
||||
/>
|
||||
</option>
|
||||
</t>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue