Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Calendar widget: restrict choice to certain dates

by
MetricWise, Inc., Adam Heinz
- 25/07/2023 18:28:43
FullCalendar has a validRange setting that does something like what you request, but it looks like it only lets you return a single date range, rather than specific days.

On Tue, Jul 25, 2023 at 10:27 AM Thomas Pot <notifications@odoo-community.org> wrote:
Hello Alessandro,

We use a simular calendar function for our healthcare clients, which is fully integrated.

But I know that a simular app is also available based on the Fullcalendar (need a licence for this) library:

Maybe this could help?


Met vriendelijke groet - Kind Regards - Mit freundlichen Grüßen,
Thomas Pot

Open2Bizz - dé Odoo specialist
Mauritslaan 56 | 6161 HW | Geleen

Maak meteen een afspraak voor een online demo van Odoo / Open2Ortho:
Klik hier


Van: "Alessandro Uffreduzzi" <notifications@odoo-community.org>
Aan: "Contributors" <contributors@odoo-community.org>
Verzonden: Dinsdag 25 juli 2023 15:22:17
Onderwerp: Calendar widget: restrict choice to certain dates

Hello all,

I need to restrict the possible dates on the calendar widget: certain dates need to be selectable and others can't; and it should be visually clear which is which. As an example use case, I want to prevent the user from being able to schedule the delivery of a sales order for the weekend, during a holiday, before the lead time has passed, or according to other conditions etc.

I can (and will) block the wrong choice of date server-side, but the user would have to proceed by trial and error if they don't have any feedback about which dates are actually valid and selectable.

I was wondering if anybody knew of a similar module or had already developed something similar.

Thank you for your time!

--

Alessandro Uffreduzzi

Developer

alessandro.uffreduzzi@pytech.it

PyTech Srl

Sede legale: Via Barozzi 40/8 - 41124 Modena

Sede operativa: Via P. Giardini 472/L - 41124 Modena

P.IVA 03988700369

www.pytech.it

PyTech
          Logo

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference