Skip to content

[19.0][MIG] hr_expense_sequence_option: Migration to 19.0#354

Draft
dnplkndll wants to merge 9 commits into
OCA:19.0from
ledoent:19.0-mig-hr_expense_sequence_option
Draft

[19.0][MIG] hr_expense_sequence_option: Migration to 19.0#354
dnplkndll wants to merge 9 commits into
OCA:19.0from
ledoent:19.0-mig-hr_expense_sequence_option

Conversation

@dnplkndll
Copy link
Copy Markdown

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

Depends on OCA/server-tools#3514 (base_sequence_option 19.0 MIG). The [DO NOT MERGE] commit at the tip of this branch pins that PR via test-requirements.txt and will be stripped before final review.

Non-mechanical adaptations worth flagging

  • Sheet removed in 19.0: _inherit = "hr.expense.sheet"_inherit = "hr.expense". The ir.sequence.option.line.get_sequence(self.new(vals)) lookup in create() carries over verbatim; only the model on which it operates changed.
  • IrSequenceOption.model Selection: hr.expense.sheethr.expense, with matching ondelete.
  • Demo ir.sequence.option.model field flips to hr.expense; demo sequence prefix wording updated ("Expense" not "Expense Sheet"/"Expense Report").
  • Test rewrite: 18.0 tests created sheets and asserted the sheet's number; the 19.0 version exercises hr.expense.create() directly and asserts the per-expense number. Split into two methods (option ON / option OFF) for clarity.

@OCA-git-bot OCA-git-bot added series:19.0 mod:hr_expense_sequence_option Module hr_expense_sequence_option labels May 26, 2026
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch 2 times, most recently from 9ad723e to 0c245c3 Compare May 26, 2026 23:56
@dnplkndll dnplkndll marked this pull request as draft May 27, 2026 00:14
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch 2 times, most recently from 9a824dd to 0c245c3 Compare May 29, 2026 20:09
ps-tubtim and others added 7 commits May 29, 2026 16:37
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)
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch from 0c245c3 to 49bbd47 Compare May 29, 2026 20:37
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch from 49bbd47 to 514a15f Compare May 30, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:hr_expense_sequence_option Module hr_expense_sequence_option series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants