Skip to content

[19.0][MIG] server_action_mass_edit_onchange: Migration to 19.0#1310

Open
MohamedOsman7 wants to merge 4 commits into
OCA:19.0from
c4a8-odoo:19.0-mig-server_action_mass_edit_onchange
Open

[19.0][MIG] server_action_mass_edit_onchange: Migration to 19.0#1310
MohamedOsman7 wants to merge 4 commits into
OCA:19.0from
c4a8-odoo:19.0-mig-server_action_mass_edit_onchange

Conversation

@MohamedOsman7

@MohamedOsman7 MohamedOsman7 commented Jul 6, 2026

Copy link
Copy Markdown

Migration of server_action_mass_edit_onchange from 18.0 to 19.0

This PR migrates the module to 19.0. The module extends server_action_mass_edit to optionally play a field's onchange methods before writing the value during a mass edit.

Changes

  • Version bumped to 19.0.1.0.0.
  • No functional/code changes needed — the model, wizard and view extension
    points are still compatible with 19.0:
    • mass.editing.wizard._exec_write() override still matches the base signature.
    • The inherited view anchor server_action_mass_edit.view_server_action_form and the apply_domain field it attaches to still exist.
    • play_onchanges() is still provided by onchange_helper (server-tools).
  • Tests adapted to 19.0 API changes in res.partner:
    • Partner class was renamed to ResPartner.
    • email no longer has an onchange method. The negative test case (a field with apply_onchanges=False must not trigger its onchange) now uses company_type / onchange_company_type instead of email / onchange_email, preserving the original test intent.

Testing

  • TestMassEditingWithOnChange.test_wizard_field_onchange passes on 19.0 (verified locally, 0 failed, 0 error(s)).

@OCA-git-bot OCA-git-bot added series:19.0 mod:server_action_mass_edit_onchange Module server_action_mass_edit_onchange labels Jul 6, 2026
@MohamedOsman7 MohamedOsman7 force-pushed the 19.0-mig-server_action_mass_edit_onchange branch from 5bf90f7 to 4c720e6 Compare July 6, 2026 14:36
@MohamedOsman7 MohamedOsman7 force-pushed the 19.0-mig-server_action_mass_edit_onchange branch from 4c720e6 to 9890c9c Compare July 6, 2026 14:45
@MohamedOsman7 MohamedOsman7 mentioned this pull request Jul 6, 2026
30 tasks
@MohamedOsman7

Copy link
Copy Markdown
Author

@trisdoan can you please make a review?

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

Labels

mod:server_action_mass_edit_onchange Module server_action_mass_edit_onchange series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants