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

[17.0][OCA-PORT] sale_timesheet_line_exclude from 16.0 to 17.0 pr #707 #718 #719

Open
wants to merge 3 commits into
base: 17.0
Choose a base branch
from

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Oct 12, 2024

No description provided.

We don't copy the field by default, because it breaks the
OE timesheet grid for users in the security group that hides
the field.

Functionally, it also makes sens to not copy this field,
because it is better to consider the new line not excluded
by default.
…clude flag

While the test does not reveal this, without this change, clicking on the
checkbox in the timesheet list view
does not reset the so line.
@sbidoul sbidoul requested a review from alexey-pelykh October 12, 2024 18:02
@sbidoul sbidoul changed the title [17.0][OCA-PROT] sale_timesheet_line_exclude from 16.0 to 17.0 pr #707 #718 [17.0][OCA-PORT] sale_timesheet_line_exclude from 16.0 to 17.0 pr #707 #718 Oct 12, 2024
Copy link
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

The change works as intended, and I understand the intension. But when this update is installed, everyone loses access on the non-billable field because the existing users are not added automatically by default.

<field name="category_id" ref="base.module_category_hidden" />
<field
name="comment"
>Gives access to the Non-Billable field on timesheets.</field>
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the role should also be added automatically to the Admin account?
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>

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.

2 participants