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] [MIG] sales_team_security_sale: Migration to 17.0 #3430

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

Conversation

cem-adhoc
Copy link

No description provided.

Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

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

LGTM

TT52442
@Tecnativa @pedrobaeza could you please review this.

<field name="model_id" ref="sale.model_sale_order" />
<field
name="domain_force"
>['|', '|', ('user_id', '=', user.id), ('user_id', '=', False), '|', ('team_id', '=', user.sale_team_id.id),('team_id', '=', False)]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be simplified to: What do you think?

Suggested change
>['|', '|', ('user_id', '=', user.id), ('user_id', '=', False), '|', ('team_id', '=', user.sale_team_id.id),('team_id', '=', False)]
>['|', ('user_id', 'in', [user.id, False]), ('team_id', 'in', [user.sale_team_id.id, False])]

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.

7 participants