Skip to content

Comments

[16.0][FIX] brand: Enable overloading of res.brand.mixin views#289

Open
emiliesoutiras wants to merge 1 commit intoOCA:16.0from
Groupe-Voltaire-SAS:16.0-brand_fix_get_view
Open

[16.0][FIX] brand: Enable overloading of res.brand.mixin views#289
emiliesoutiras wants to merge 1 commit intoOCA:16.0from
Groupe-Voltaire-SAS:16.0-brand_fix_get_view

Conversation

@emiliesoutiras
Copy link

With the get_view() function in the res.brand.mixin template, all view overrides for the brand_id field are systematically overwritten by the Python definition of the field.

As a result, the sale_brand.view_order_form_brand view is useless because the definition of the SaleOrder.brand_id field already sets it to read-only in all states other than ‘draft’.

This proposal intends to make the "readonly" attribute of the brand_id field in views overridable via a Python function.

@OCA-git-bot
Copy link
Contributor

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

@emiliesoutiras emiliesoutiras force-pushed the 16.0-brand_fix_get_view branch from 811e8e3 to dd93417 Compare January 21, 2026 14:20
@emiliesoutiras
Copy link
Author

cc @Kev-Roche @metaminux

Copy link

@Kev-Roche Kev-Roche left a comment

Choose a reason for hiding this comment

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

Functional review LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants