Hi,
for example in the calendar app the current day is highlighted and also theres a button to go to today.
Does anyone know how this works (which part of the code is doing this)?
Hi,
for example in the calendar app the current day is highlighted and also theres a button to go to today.
Does anyone know how this works (which part of the code is doing this)?
For the highlight it from jquery ui code at https://github.com/odoo/odoo/blob/b917cd6af89d168bbf72e8253a6d7fa5193d6553/addons/web/static/lib/jquery.ui/jquery-ui.js#L9626 , it add css class and of course odoo have scss for that
And for button to go today
For button to go today
Here is the xml https://github.com/odoo/odoo/blob/b917cd6af89d168bbf72e8253a6d7fa5193d6553/addons/web/static/src/xml/web_calendar.xml#L108
And the code https://github.com/odoo/odoo/blob/b917cd6af89d168bbf72e8253a6d7fa5193d6553/addons/web/static/src/js/views/calendar/calendar_controller.js#L46
Thank you! I'll see what I can do with this.
Yes, if this help, do not hesitate to mark the best answer sir, thank you
I'm working in Odoo14
Sorry odoo forum seem bug i can add all comment in one
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Which odoo version sir, i can help you find it