Skip to content

[19.0][MIG] chained_swapper: Migration to 19.0#1297

Open
dnplkndll wants to merge 18 commits into
OCA:19.0from
ledoent:19.0-mig-chained_swapper
Open

[19.0][MIG] chained_swapper: Migration to 19.0#1297
dnplkndll wants to merge 18 commits into
OCA:19.0from
ledoent:19.0-mig-chained_swapper

Conversation

@dnplkndll

Copy link
Copy Markdown

Port of chained_swapper from 18.0 to 19.0 (migration guide).

Non-mechanical adaptations worth flagging

  • _sql_constraintsmodels.Constraint (19.0 API). Kept the original constraint
    name (model_id_field_id_unique) so the DB constraint identity is unchanged.
  • groups_idgroup_ids on the ir.actions.act_window create (19.0 privilege
    refactor; the module's own group_ids field is unrelated).
  • The wizard's framework overrides (get_view/get_views/onchange/fields_get)
    are preserved — 19.0 core keeps the identical signatures.

Ernesto Tejeda and others added 18 commits May 29, 2026 10:25
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
- _sql_constraints → models.Constraint (19.0 API); kept the original constraint name so the DB constraint identity is stable.
- groups_id → group_ids on the ir.actions.act_window create (19.0 privilege refactor).
- name field is translate=True: index=1 (btree) → index="trigram" — 19.0 stores translated values as jsonb and only trigram indexes are supported (btree is silently ignored + warns).

Signed-off-by: Don Kendall <dkendall@ledoweb.com>
@dnplkndll

Copy link
Copy Markdown
Author

/ocabot migration chained_swapper

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Sorry @dnplkndll you are not allowed to mark the addon to be migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.