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][ADD] add hr_governance module #1455

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

Conversation

Luca-Policastro
Copy link

No description provided.

@Luca-Policastro Luca-Policastro force-pushed the C2C-2439 branch 5 times, most recently from 6537631 to a52ba41 Compare March 31, 2025 09:39
Copy link

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

partial review

def _is_assigned_w_steering(self):
self.ensure_one()
steering_role = self.env.ref(
"hr_governance.steering_gct", raise_if_not_found=False

Choose a reason for hiding this comment

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

IMO we shouldn't have business code depend on configurable records like the role types.

Instead, we should perhaps have a "type"-like selection field on the role types, with predefined values like "steering", and use it instead.

That way the code wouldn't rely on given records being created (through xmlid), an rely instead on record configurations

not blocking, though. can be a future improvement

@rvalyi rvalyi changed the title [ADD] add hr_governance module [17.0][ADD] add hr_governance module Mar 31, 2025
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