Skip to content

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

Open
dnplkndll wants to merge 10 commits into
OCA:19.0from
ledoent:19.0-mig-hr_expense_sequence_option
Open

[19.0][MIG] hr_expense_sequence_option: Migration to 19.0#354
dnplkndll wants to merge 10 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 2 times, most recently from 49bbd47 to 514a15f Compare May 30, 2026 14:57
Comment thread hr_expense_sequence_option/tests/test_hr_expense_sequence_option.py Outdated
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch from 514a15f to 82c5506 Compare June 2, 2026 17:41
@dnplkndll dnplkndll marked this pull request as ready for review June 2, 2026 19:05
@dnplkndll

Copy link
Copy Markdown
Author

thanks @BhaveshHeliconia updated

@@ -1,2 +1,3 @@
This module extends module ir_sequence_option and allow you to provide
optional sequences for hr.expense.sheet documents.
This module extends `base_sequence_option` and lets you provide optional

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should go into the migration commit, not the pre-commit commit.

Comment on lines +6 to +15
"summary": "Manage sequence options for hr.expense",
"version": "19.0.1.0.0",
"license": "AGPL-3",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr-expense",
"category": "Human Resources",
"depends": ["base_sequence_option", "hr_expense_sequence"],
"demo": ["demo/hr_expense_demo_options.xml"],
"development_status": "Alpha",
"maintainers": ["ps-tubtim"],
"maintainers": ["ps-tubtim", "dnplkndll"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should go into the migration commit, not the pre-commit commit.

@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch from 82c5506 to ac13507 Compare June 12, 2026 14:04
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch 3 times, most recently from 32edb77 to fc73317 Compare June 19, 2026 18:10
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr_expense_sequence_option branch from fc73317 to 42a3845 Compare June 19, 2026 19:12

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review LGTM!

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