Skip to content

[FIX] document_page: make content field span full width in form views#612

Closed
miquelrosell99 wants to merge 1 commit into
OCA:17.0from
miquelrosell99:17.0-fix-document-page-content-layout
Closed

[FIX] document_page: make content field span full width in form views#612
miquelrosell99 wants to merge 1 commit into
OCA:17.0from
miquelrosell99:17.0-fix-document-page-content-layout

Conversation

@miquelrosell99
Copy link
Copy Markdown

The content field was placed directly in the sheet without a group wrapper, which caused it to render in a narrow single column. Wrapping it in a makes it use the full available width in both the main document form and the history form.

The content field was placed directly in the sheet without a group wrapper,
which caused it to render in a narrow single column. Wrapping it in a
<group colspan="2" nolabel="1"> makes it use the full available width
in both the main document form and the history form.
@pedrobaeza pedrobaeza added this to the 17.0 milestone May 20, 2026
@pedrobaeza
Copy link
Copy Markdown
Member

Can you put screenshots of before/after?

@miquelrosell99
Copy link
Copy Markdown
Author

By default it looked fine but in some cases for custom modules (I use one to use ckeditor, for example), it switched to one column layout. See example:
imagen

After my fix everything looks normal, even with custom modules that replace the html widget. And also, to my understanding, having fields in a group it is the standard approach to add fields in form view in Odoo?

@pedrobaeza
Copy link
Copy Markdown
Member

Uhm, then it seems a problem of the CK editor itself, not this one.

@miquelrosell99
Copy link
Copy Markdown
Author

Closing this PR as the issue is not in document_page but in the custom web_editor_ckeditor widget styling. The module document_page_form_content_layout is not needed; the root cause (missing block display and iframe box-sizing in the CKEditor widget) has been fixed in the custom web_editor_ckeditor module.

@miquelrosell99 miquelrosell99 deleted the 17.0-fix-document-page-content-layout branch May 21, 2026 09:58
@pedrobaeza
Copy link
Copy Markdown
Member

Thanks for the feedback and glad that you fix it.

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.

3 participants