Skip to content

[18.0][FIX] account_brand: Fix dynamic domain on account_id#304

Open
BhaveshHeliconia wants to merge 1 commit into
OCA:18.0from
HeliconiaIO:18.0-fix-account_brand
Open

[18.0][FIX] account_brand: Fix dynamic domain on account_id#304
BhaveshHeliconia wants to merge 1 commit into
OCA:18.0from
HeliconiaIO:18.0-fix-account_brand

Conversation

@BhaveshHeliconia
Copy link
Copy Markdown
Contributor

@BhaveshHeliconia BhaveshHeliconia commented May 18, 2026

Summary

From v14, Returning a domain dict from _onchange_account_type is deprecated. The domain is moved directly onto the account_id field definition using a dynamic expression referencing account_type. Also, in v16+ the internal_type field on account.account was replaced by account_type.

Changes

  • Replace deprecated onchange domain return with a declarative field domain.
  • Use account_type field (replaces deprecated internal_type from v14).
  • Simplify _onchange_account_type to only reset account_id.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @osi-scampbell, @sbejaoui,
some modules you are maintaining are being modified, check this out!

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.

2 participants