[16.0][IMP] payroll: action_clear_employees#257
Draft
CristianoMafraJunior wants to merge 1 commit intoOCA:16.0from
Draft
[16.0][IMP] payroll: action_clear_employees#257CristianoMafraJunior wants to merge 1 commit intoOCA:16.0from
CristianoMafraJunior wants to merge 1 commit intoOCA:16.0from
Conversation
Contributor
|
Hi @norlinhenrik, @nimarosa, |
48ae6a7 to
26a106f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Escodoo HT01879
Why
In the Generate Payslips wizard
(hr.payslip.employees), the employee list can open with hundreds of pre-loaded records, which slows down the UI and makes it hard to pick only the employees that should be included in the batch. Generation behavior is unchanged; what was missing was a quick way to clear the full selection without deleting rows one by one.What changed
Added action_clear_employees on transient model
hr.payslip.employees, clearingemployee_idsusingMany2manycommand(5, 0, 0)and keeping the wizard open.Added a header button on the wizard form that calls action_clear_employees, so users can remove all selected employees in one click.
The Generate button still requires at least one employee (existing check in
compute_sheet).