[19.0][MIG] hr_expense_sequence: Migration to 19.0#353
Open
dnplkndll wants to merge 44 commits into
Open
Conversation
7cd28b5 to
0473f31
Compare
bcbf310 to
bff17b0
Compare
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
Currently translated at 100.0% (3 of 3 strings) Translation: hr-10.0/hr-10.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-10-0/hr-10-0-hr_expense_sequence/de/
Currently translated at 100.0% (3 of 3 strings) Translation: hr-expense-14.0/hr-expense-14.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-14-0/hr-expense-14-0-hr_expense_sequence/pt_BR/
Currently translated at 100.0% (3 of 3 strings) Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_sequence/it/
Currently translated at 100.0% (3 of 3 strings) Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_sequence/it/
Currently translated at 100.0% (3 of 3 strings) Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_sequence/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_sequence/
Currently translated at 100.0% (2 of 2 strings) Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_sequence/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: hr-expense-18.0/hr-expense-18.0-hr_expense_sequence Translate-URL: https://translation.odoo-community.org/projects/hr-expense-18-0/hr-expense-18-0-hr_expense_sequence/
bff17b0 to
d415fb2
Compare
hr.expense.sheet was removed in 19.0; retarget the sequence and number field from the expense sheet to the individual hr.expense record.
d415fb2 to
f6bf345
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_sequencefrom 18.0 to 19.0. Migration guide: https://github.com/OCA/maintainer-tools/wiki/#migration-to-version-19.0Non-mechanical adaptations worth flagging
_inherit = "hr.expense.sheet"→_inherit = "hr.expense". ThenumberChar + auto-sequence-in-create()logic moves to hr.expense itself, and the recordset-level_rec_name = "number"follows. Sequence code changes fromhr.expense.sheettohr.expense.hr_expense.hr_expense_view_form/hr_expense_view_expenses_analysis_tree/hr_expense_view_search(the 18.0 sheet view IDs are gone).hr_expense.report_expense(wasreport_expense_sheet).hr.expenserecords (not sheet); same sequence-pull pattern.hr.expense.create()with explicit / auto / manual-override paths.