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

[16.0][IMP] server_action_mass_edit: Improve error message when update record in batch #962

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

Conversation

carlosdauden
Copy link
Contributor

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Looks like something else might be missing as the installation fails in the CI

@carlosdauden carlosdauden force-pushed the 16.0-IMP-server_action_mass_edit-write_record_by_record branch 2 times, most recently from 1d67677 to 3edac08 Compare October 28, 2024 19:11
@carlosdauden carlosdauden force-pushed the 16.0-IMP-server_action_mass_edit-write_record_by_record branch from 3edac08 to f8454d9 Compare October 28, 2024 19:20
Copy link
Contributor

@sergio-teruel sergio-teruel 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 ok

@@ -281,9 +299,44 @@ def create(self, vals_list):
values.update({split_key: m2m_list})

if values:
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you can avoid the complexity warning C901 like this

Suggested change
if values:
if not values:
continue

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