Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] web_calendar_slot_duration_by_user #2819

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

imlopes
Copy link

@imlopes imlopes commented May 10, 2024

No description provided.

@imlopes
Copy link
Author

imlopes commented May 24, 2024

@yajo

Can you check this PR too ?
Here my objective is to add a slot duration by user.

Context :

In some cases, an employee will plan by default meets each hour. But another employee (in another department) will plan his meets each 30min.

Comment on lines +10 to +15
use_custom_calendar = fields.Boolean(
help="If checked, the user will use the custom calendar",
)
slot_duration = fields.Char(
help="The slot duration for the user",
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just set a default slot duration for everybody and remove the boolean field.

Also the duration should be IMHO a Float using the float_time widget for better UI consistency.

<field name="use_custom_calendar" />
<field
name="slot_duration"
help="Duration of the default duration for the calendar view in the format HH:MM:SS"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add help directly in the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants