[19.0][MIG] hr_expense_sequence_option: Migration to 19.0#354
Draft
dnplkndll wants to merge 9 commits into
Draft
[19.0][MIG] hr_expense_sequence_option: Migration to 19.0#354dnplkndll wants to merge 9 commits into
dnplkndll wants to merge 9 commits into
Conversation
9ad723e to
0c245c3
Compare
9a824dd to
0c245c3
Compare
(cherry picked from commit 5b0dbde)
(cherry picked from commit 60e94a4)
(cherry picked from commit 31f835f)
(cherry picked from commit a14b10d)
Currently translated at 100.0% (4 of 4 strings) Translation: hr-expense-16.0/hr-expense-16.0-hr_expense_sequence_option Translate-URL: https://translation.odoo-community.org/projects/hr-expense-16-0/hr-expense-16-0-hr_expense_sequence_option/it/ (cherry picked from commit 7eb5f5d)
(cherry picked from commit 0b5c632)
(cherry picked from commit 35bf532)
0c245c3 to
49bbd47
Compare
hr.expense.sheet was removed in 19.0; retarget to hr.expense.
49bbd47 to
514a15f
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.
Port of
hr_expense_sequence_optionfrom 18.0 to 19.0. Migration guide: https://github.com/OCA/maintainer-tools/wiki/#migration-to-version-19.0Depends on OCA/server-tools#3514 (
base_sequence_option19.0 MIG). The[DO NOT MERGE]commit at the tip of this branch pins that PR viatest-requirements.txtand will be stripped before final review.Non-mechanical adaptations worth flagging
_inherit = "hr.expense.sheet"→_inherit = "hr.expense". Their.sequence.option.line.get_sequence(self.new(vals))lookup increate()carries over verbatim; only the model on which it operates changed.hr.expense.sheet→hr.expense, with matchingondelete.ir.sequence.option.modelfield flips tohr.expense; demo sequence prefix wording updated ("Expense" not "Expense Sheet"/"Expense Report").hr.expense.create()directly and asserts the per-expense number. Split into two methods (option ON / option OFF) for clarity.