Skip to content

[18.0][ADD] hr_collective_agreement#1544

Draft
Anxo82 wants to merge 1 commit intoOCA:18.0from
sygel-technology:18.0-add-hr_collective_agreement
Draft

[18.0][ADD] hr_collective_agreement#1544
Anxo82 wants to merge 1 commit intoOCA:18.0from
sygel-technology:18.0-add-hr_collective_agreement

Conversation

@Anxo82
Copy link

@Anxo82 Anxo82 commented Feb 4, 2026


code = fields.Char(required=True)
name = fields.Text(required=True)
scope_id = fields.Many2one(
Copy link

Choose a reason for hiding this comment

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

What is this scope model and field for? A definition and/or explanation in the readme DESCRIPTION, and maybe in the help for this field might be useful.

Copy link
Author

Choose a reason for hiding this comment

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

Added a help text to the scope_id field and a short explanation of the Scope and Official Publication fields in the README. Thanks

column2="partner_id",
string="Partners",
check_company=True,
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
Copy link

Choose a reason for hiding this comment

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

Or you might set _check_company_auto = True on the class level, to have this check automatic for all model references that might contain a company_id field.

Copy link

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

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

👍 Thank you for your contribution. Just purge copyright lines from the init files and add some help or explanation and it will be good to go.

@Anxo82 Anxo82 force-pushed the 18.0-add-hr_collective_agreement branch from 4ae9a5d to a93336b Compare February 5, 2026 10:14
@Anxo82 Anxo82 force-pushed the 18.0-add-hr_collective_agreement branch from a93336b to 3f34e24 Compare February 5, 2026 10:32
Copy link

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

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

👍 Actually I am not quite sure whether the domain on the partner_id field is still needed with _check_company_auto, but it will not hurt anyway. Thanks again!

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