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

[FIX] runbot: prevent crash with invalid exception #983

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

Williambraecky
Copy link
Contributor

No description provided.

@Williambraecky Williambraecky force-pushed the 17.0-fix-upgrade-exception-crash-wbr branch from 86c9f03 to 400448d Compare November 18, 2024 10:16
@C3POdoo C3POdoo requested a review from a team November 18, 2024 10:17
@@ -20,7 +20,7 @@ def _compute_message(self):
exception.message = message_layout.format(exception=exception, base_url=exception.get_base_url())

def _generate(self):
exceptions = self.search([])
exceptions = self.search([('elements', '!=', False)])
Copy link
Contributor

Choose a reason for hiding this comment

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

Je pense que ca aurait plus de sens de mettre une contrainte required sur le champ :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Faut delete les exceptions alors, sinon la contrainte pourra pas être appliquée :p

Copy link
Contributor

Choose a reason for hiding this comment

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

Faut delete les exceptions alors, sinon la contrainte pourra pas être appliquée :p

Ha oui bien entendu. Maintenant le client js aura connaissance du required et empèchera de sauvegarder quand même je pense ;)

@Williambraecky Williambraecky force-pushed the 17.0-fix-upgrade-exception-crash-wbr branch from 400448d to a72be05 Compare November 18, 2024 10:22
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.

2 participants