-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
[MIG] [11.0] Migrate hr_payroll_cancel to 11.0 #436
Conversation
Allows the user to cancel a payslip whatever the previous state is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved except for a typo.
for payslip in self: | ||
if payslip.refunded_id and payslip.refunded_id.state != 'cancel': | ||
raise ValidationError(_("""To cancel the Original Payslip the | ||
Refunded Payslip needed to be canceled first!""")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: Replace needed
by needs
hr_payroll_cancel/i18n/fr.po
Outdated
#, python-format | ||
msgid "" | ||
"To cancel the Original Payslip the\n" | ||
" Refunded Payslip needed to be canceled first!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs > need
hr_payroll_cancel/i18n/cs_CZ.po
Outdated
#, python-format | ||
msgid "" | ||
"To cancel the Original Payslip the\n" | ||
" Refunded Payslip needed to be canceled first!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed > needs
7455ab4
to
3ae14eb
Compare
Why is it writing the state on a single record ( |
3ae14eb
to
ff9936d
Compare
ff9936d
to
5c78709
Compare
@gabrielo77 Good question, IMO probably the original author's intention is that action always works for only one single record (since the button only appears on form view, and he returned right after the first loop). You are right actually, we should treat it like the whole recordsets no matter what because we were using I did a fix based on your PR, may I add you as a contributor for this module also? |
Sure, add me. I'm currently working on the test cases for this module. Hope I can push it ASAP so we can have this merged. |
This seems ready to merge, or is it codecov a needed check? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks ok.
[BSSFL-533] Repair line on Sale order line
No description provided.