From 804c74813e95c4e456337c13c84d8e3ce8c69950 Mon Sep 17 00:00:00 2001 From: luvi Date: Mon, 3 Apr 2023 05:51:06 +0000 Subject: [PATCH] [IMP] web: export SCALE_LABELS from calendar_controller.js This commits exports the SCALE_LABELS list from the calendar_controller.js file. This allows us to import and know the list of available scales from other locations (Studio for example), and be updated with the supported scales with their value and label. Part-of: odoo/odoo#115799 --- addons/web/static/src/views/calendar/calendar_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/views/calendar/calendar_controller.js b/addons/web/static/src/views/calendar/calendar_controller.js index c0e655cd1dc..f83a1aa7c3f 100644 --- a/addons/web/static/src/views/calendar/calendar_controller.js +++ b/addons/web/static/src/views/calendar/calendar_controller.js @@ -15,7 +15,7 @@ import { CalendarQuickCreate } from "./quick_create/calendar_quick_create"; import { Component, useState } from "@odoo/owl"; -const SCALE_LABELS = { +export const SCALE_LABELS = { day: _lt("Day"), week: _lt("Week"), month: _lt("Month"),