Skip to content

[18.0][MIG] hr_expense_advance_overdue_reminder: Migration to 18.0#363

Open
ROBBYHOOD9 wants to merge 17 commits into
OCA:18.0from
ecosoft-odoo:18.0-mig-hr_expense_advance_overdue_reminder
Open

[18.0][MIG] hr_expense_advance_overdue_reminder: Migration to 18.0#363
ROBBYHOOD9 wants to merge 17 commits into
OCA:18.0from
ecosoft-odoo:18.0-mig-hr_expense_advance_overdue_reminder

Conversation

@ROBBYHOOD9

@ROBBYHOOD9 ROBBYHOOD9 commented Jun 16, 2026

Copy link
Copy Markdown

Migration hr_expense_advance_overdue_reminder from 15.0 to 18.0

1. Module Version

Updated the module version to align with Odoo 18.

"version": "15.0.1.0.0""version": "18.0.1.0.0"

2. Python Code Updates

Updated Python code to comply with Odoo 18 requirements.

  • Removed deprecated states={...} field attributes and moved readonly logic to views.
  • Removed duplicated field overrides inherited from base.reminder.mixin.
  • Replaced @api.model create(vals) with @api.model_create_multi create(vals_list).
  • Updated expense sheet logic to use account_move_ids instead of account_move_id.
  • Replaced deprecated methods and APIs removed in Odoo 18.
  • Fixed Ruff issues (UP031, ambiguous lambda variables, context access).

3. Functional Updates

Updated logic to support changes introduced in Odoo 18.

  • Replaced checks on deprecated partner type private with work_contact_id.
  • Updated mail templates and reminder logic to use work_contact_id.
  • Updated mail compose logic to use default_res_ids instead of deprecated default_res_id.

4. View Migration

Updated XML views to follow the Odoo 17/18 architecture.

  • Replaced attrs expressions with inline expressions.
  • Replaced <tree> with <list>.
  • Changed view_mode from tree to list.
  • Replaced <div class="oe_chatter"> with <chatter/>.
  • Replaced button states attributes with inline visibility expressions.
  • Replaced invisible="1" with column_invisible="1" for list view columns.

5. Test Updates

Updated tests to follow newer Odoo conventions.

  • Refactored tests to use TestExpenseCommon.
  • Updated test data and helper methods to match Odoo 18.
  • Updated mail-related tests to use work_contact_id and default_res_ids.

6. Runtime Fixes

Resolved issues discovered during installation and test execution.

  • Fixed broken search view xpath caused by removed filters in Odoo 18.
  • Fixed missing reminder_definition_id causing wizard creation failures.
  • Fixed mail compose integration after removal of default_res_id / res_id in Odoo 18.

Note

Additional fixes were applied to resolve CI failures in Odoo 18:

  • Updated action_sheet_move_post() to skip overdue reminder processing when no reminder.definition is configured, preventing failures in related modules.
  • Updated tests to reflect the new behavior.
  • Added base.group_user to access rules with empty groups to eliminate Odoo 18 CI warnings.

These changes do not affect normal functionality when a reminder definition is configured.

Saran440 and others added 16 commits June 16, 2026 15:02
Currently translated at 100.0% (102 of 102 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/
Currently translated at 99.0% (100 of 101 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/es/
Currently translated at 100.0% (101 of 101 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/es/
Currently translated at 100.0% (101 of 101 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/it/
Currently translated at 100.0% (101 of 101 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/it/
Currently translated at 100.0% (101 of 101 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/it/
Currently translated at 100.0% (101 of 101 strings)

Translation: hr-expense-15.0/hr-expense-15.0-hr_expense_advance_overdue_reminder
Translate-URL: https://translation.odoo-community.org/projects/hr-expense-15-0/hr-expense-15-0-hr_expense_advance_overdue_reminder/gl/
@OCA-git-bot OCA-git-bot added series:18.0 mod:hr_expense_advance_overdue_reminder Module hr_expense_advance_overdue_reminder labels Jun 16, 2026
@ROBBYHOOD9 ROBBYHOOD9 force-pushed the 18.0-mig-hr_expense_advance_overdue_reminder branch from 025725b to cb52487 Compare June 16, 2026 09:52
@Saran440

Copy link
Copy Markdown
Member

@ROBBYHOOD9 Could you check and review this PR instead? #326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:hr_expense_advance_overdue_reminder Module hr_expense_advance_overdue_reminder series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants