[19.0][MIG] hr_expense_sequence: Migration to 19.0#353
Open
dnplkndll wants to merge 35 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/
d415fb2 to
f6bf345
Compare
| /> | ||
| <field name="arch" type="xml"> | ||
| <field name="name" position="before"> | ||
| <field name="number" /> |
Contributor
There was a problem hiding this comment.
Why aren't we adding this field to the form view?
Comment on lines
+14
to
+15
| # Create our own product fixture — OCA CI runs without demo data so | ||
| # `product.product_product_4` is not available. |
Contributor
There was a problem hiding this comment.
Suggested change
| # Create our own product fixture — OCA CI runs without demo data so | |
| # `product.product_product_4` is not available. |
Could we remove this unnecessary comment?
f6bf345 to
5c23b75
Compare
BhaveshHeliconia
approved these changes
Jun 3, 2026
BhaveshHeliconia
left a comment
Contributor
There was a problem hiding this comment.
Code review LGTM!
de2bfb9 to
f165570
Compare
Contributor
|
Please squash the commits as explained here: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate |
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/
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/
hr.expense.sheet was removed in 19.0; retarget the sequence and number field from the expense sheet to the individual hr.expense record.
f165570 to
b0e3b46
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.