Skip to content

Conversation

adavid-tsc
Copy link

@adavid-tsc adavid-tsc commented Jun 25, 2025

Fixes #1095

File "/home/odoo/src/odoo/addons/web/models/models.py", line 883, in onchange
field = self._fields[field_name]
~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'selection__scheduled_date'

When clicking on the action on the model Gear menu we had this
Put back the onchange from 17.0 + edits on line 94

@mav-adhoc
Copy link

@adavid-tsc Hi! Can you check the pre-commit error? Thanks!

@adavid-tsc
Copy link
Author

@mav-adhoc I think the PR mentionned up there could resolve this
I didn't test though

@mav-adhoc
Copy link

@adavid-tsc The PR mentioned by jjscarafia? That PR is the one that caused the error in the current module

@Reyes4711-S73
Copy link

LGTM

@mav-adhoc
Copy link

LGTM

@grindtildeath
Copy link

@pedrobaeza @etobella Can you please check this since you didn't want my contribution and proceeded with a separated module?

cc @trisdoan

@legalsylvain
Copy link
Contributor

(Pré commit is failing.)

Copy link

@andreampiovesana andreampiovesana left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@marcelofrare marcelofrare left a comment

Choose a reason for hiding this comment

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

LGTM functional

@mav-adhoc
Copy link

@adavid-tsc Can you check the pre-commit? Thanks!

@andreampiovesana
Copy link

please @adavid-tsc can you fix so we merge?

Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

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

Thanks! Can you remove the corresponding code from server_action_mass_edit_onchange?

@StefanRijnhart
Copy link
Member

@adavid-tsc I'm addressing my own concerns in adavid-tsc#1, and I also added a test. Please consider merging this one into your branch and then squash the commits.

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.

Issue server action mass_edit field name selection_
9 participants