Skip to content

[FIX] hr: change behavior of the new contract button for the payroll tab in employee - #5253

Open
aryep-odoo wants to merge 1 commit into
master-hr-onboarding-aryepfrom
master-hr-persistent_new_contract_button-aryep
Open

[FIX] hr: change behavior of the new contract button for the payroll tab in employee#5253
aryep-odoo wants to merge 1 commit into
master-hr-onboarding-aryepfrom
master-hr-persistent_new_contract_button-aryep

Conversation

@aryep-odoo

Copy link
Copy Markdown

The button to create new contract that was in the employee's payroll ta was appearing even when no contract dates were selected, which was incorrect behavior.

Is a problem because in order to create a contract you need both starting and closing dates.

To avoid code duplication the solution was to target the fix in the 'ButtonNewContract' custom widget that is only used in those views in all places (community, enterprise and addons). Now, it is dynamically verified if the 'contract_date_start' exists before rendering the button.

task-6519063

…tab in employee

The button to create new contract that was in the employee's payroll ta was appearing even when no contract dates were selected, which was incorrect behavior.

Is a problem because in order to create a contract you need both starting and closing dates.

To avoid code duplication the solution was to target the fix in the 'ButtonNewContract' custom widget that is only used in those views in all places (community, enterprise and addons). Now, it is dynamically verified if the 'contract_date_start' exists before rendering the button.

task-6519063
@aryep-odoo aryep-odoo self-assigned this Aug 28, 2026
@robodoo

robodoo commented Aug 28, 2026

Copy link
Copy Markdown

This PR targets the un-managed branch odoo-dev/odoo:master-hr-onboarding-aryep, it needs to be retargeted before it can be merged.

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