Skip to content

[19.0][MIG] hr_expense_sequence: Migration to 19.0#353

Open
dnplkndll wants to merge 44 commits into
OCA:19.0from
ledoent:19.0-mig-hr_expense_sequence
Open

[19.0][MIG] hr_expense_sequence: Migration to 19.0#353
dnplkndll wants to merge 44 commits into
OCA:19.0from
ledoent:19.0-mig-hr_expense_sequence

Conversation

@dnplkndll
Copy link
Copy Markdown

Port of hr_expense_sequence from 18.0 to 19.0. Migration guide: https://github.com/OCA/maintainer-tools/wiki/#migration-to-version-19.0

Non-mechanical adaptations worth flagging

  • Sheet removed in 19.0: _inherit = "hr.expense.sheet"_inherit = "hr.expense". The number Char + auto-sequence-in-create() logic moves to hr.expense itself, and the recordset-level _rec_name = "number" follows. Sequence code changes from hr.expense.sheet to hr.expense.
  • View inherits: rewired to hr_expense.hr_expense_view_form / hr_expense_view_expenses_analysis_tree / hr_expense_view_search (the 18.0 sheet view IDs are gone).
  • Report inherit: rewired to hr_expense.report_expense (was report_expense_sheet).
  • post_init_hook: backfill now iterates hr.expense records (not sheet); same sequence-pull pattern.
  • Test rewrite: 18.0 tests created sheets and asserted the number on the sheet; the 19.0 version exercises hr.expense.create() with explicit / auto / manual-override paths.

@OCA-git-bot OCA-git-bot added series:19.0 mod:hr_expense_sequence Module hr_expense_sequence labels May 26, 2026
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence branch from 7cd28b5 to 0473f31 Compare May 26, 2026 23:37
@dnplkndll dnplkndll marked this pull request as draft May 27, 2026 00:15
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence branch 2 times, most recently from bcbf310 to bff17b0 Compare May 29, 2026 15:31
pedrobaeza and others added 23 commits May 29, 2026 16:51
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/
OCA-git-bot and others added 19 commits May 29, 2026 16:51
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/
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence branch from bff17b0 to d415fb2 Compare May 29, 2026 21:22
dnplkndll added 2 commits May 30, 2026 10:55
hr.expense.sheet was removed in 19.0; retarget the sequence and number
field from the expense sheet to the individual hr.expense record.
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence branch from d415fb2 to f6bf345 Compare May 30, 2026 14:55
@dnplkndll dnplkndll marked this pull request as ready for review May 30, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:hr_expense_sequence Module hr_expense_sequence series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.