Create Holiday Calendar

Hi everyone,

I’m developing a custom module to create calendars to mark holiday/non-working days per location. I’m using Tryton 7.0 with the SAO client.

In the calendar form view I implemented two panels: one for the calendar years and another for the non-working days. To filter the days by year I added an active_year field (Many2One to my working.calendar.year).

The issue is that when a calendar is new, there are no years yet, so active_year is empty. However SAO still allows adding non-working days in the right panel, and when I save, those days are not saved (or it fails because active_year is None when the setter tries to use active_year.id).

Has anyone tried a similar two-panel layout (years on the left, days on the right) in Tryton/SAO?

Thanks in advance!