Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add BuilderList #4240

Open
wants to merge 4 commits into
base: master-mysterious-egg
Choose a base branch
from

Conversation

agau-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Mar 21, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@FrancoisGe FrancoisGe force-pushed the master-mysterious-egg branch from f468b7f to 80b3d5d Compare March 27, 2025 12:21
@ged-odoo ged-odoo force-pushed the master-mysterious-egg branch from 27a1402 to 8c6b756 Compare March 27, 2025 20:00
@agau-odoo agau-odoo force-pushed the master-mysterious-egg-agau-4 branch 4 times, most recently from de09195 to 030f5d2 Compare March 31, 2025 09:02
@agau-odoo agau-odoo marked this pull request as ready for review March 31, 2025 09:02
@robodoo
Copy link

robodoo commented Mar 31, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@agau-odoo agau-odoo force-pushed the master-mysterious-egg-agau-4 branch from 030f5d2 to e79686c Compare March 31, 2025 12:08
@agau-odoo agau-odoo changed the title wip: add BuilderList add BuilderList Apr 3, 2025
@agau-odoo agau-odoo force-pushed the master-mysterious-egg-agau-4 branch from e79686c to 27f2247 Compare April 3, 2025 08:48
Comment on lines 61 to 69
validateProps() {
// entryShape types are supported
for (const [name, type] of Object.entries(this.props.entryShape)) {
if (!supportedEntryShapeTypes.includes(type)) {
throw new Error(
`BuilderList entryShape only supports ${supportedEntryShapeTypes.toString()} types, received ${name}: "${type}"`
);
}
}

Choose a reason for hiding this comment

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

Why not use Component validation props ?

Choose a reason for hiding this comment

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

(Maybe checkc ommunity/addons/html_editor/static/src/main/toolbar/toolbar.js)

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I actually forgot to look into it. 😅 I fixed it in a 4th commit
Do you know if it's possible to validate a prop against other props?

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