Skip to content

[19.0][ADD] website_sale_product_document_type - #1287

Open
Ricardoalso wants to merge 1 commit into
OCA:19.0from
camptocamp:website_sale_product_document_type
Open

[19.0][ADD] website_sale_product_document_type#1287
Ricardoalso wants to merge 1 commit into
OCA:19.0from
camptocamp:website_sale_product_document_type

Conversation

@Ricardoalso

@Ricardoalso Ricardoalso commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

On the e-commerce product page, groups the published product documents by
their document type, showing a heading with the translated type name above
each group. Documents that have no document type are listed together in a
final, unlabelled group.

@OCA-git-bot OCA-git-bot added series:19.0 mod:website_sale_product_document_type Module website_sale_product_document_type labels Aug 14, 2026
@Ricardoalso
Ricardoalso marked this pull request as draft August 14, 2026 13:05
@Ricardoalso Ricardoalso changed the title [ADD] website_sale_product_document_type [19.0][ADD] website_sale_product_document_type Aug 14, 2026
@Ricardoalso
Ricardoalso force-pushed the website_sale_product_document_type branch 2 times, most recently from 2ed3da5 to 2dc5185 Compare August 17, 2026 05:54
@Ricardoalso
Ricardoalso marked this pull request as ready for review August 17, 2026 05:57
@Ricardoalso
Ricardoalso force-pushed the website_sale_product_document_type branch from 2dc5185 to 75c669e Compare August 17, 2026 06:05
t-set="product_documents_untyped"
t-value="product_documents.filtered(lambda d: not d.document_type_id)"
/>
<div class="list-group" t-if="product_documents_untyped">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I have reviwed in runbot: untyped documents are displayed immediately below the last typed group, which makes them look like they belong to that document type. Adding an “Other documents” label or simply some spacing before the untyped group would avoid this confusion.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review @dcanete-pyming

Indeed, the current display isn’t very user-friendly. I will add a new label to separate the unlabeled documents

@Ricardoalso
Ricardoalso force-pushed the website_sale_product_document_type branch from 75c669e to 48076f5 Compare August 17, 2026 13:10

@ivantodorovich ivantodorovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@Ricardoalso
Ricardoalso force-pushed the website_sale_product_document_type branch from 48076f5 to 650bd6e Compare August 19, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:website_sale_product_document_type Module website_sale_product_document_type series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants