Skip to content

Conversation

@dhrp-odoo
Copy link
Contributor

Description:

When the formula assistant was force-closed, Enter/Tab were swallowed and no action occurred. Users could not confirm edits (including plain text).

Composer now tells the store when the assistant is force-closed. Enter/Tab confirm the edit if the assistant is open; otherwise, they stop the edition.

Task: 5153666

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Oct 29, 2025

Pull request status dashboard

Comment on lines 391 to 401
this.assistant.forcedClosed && this.props.composerStore.canBeToggled
);
}

private processEnterKey(ev: KeyboardEvent, direction: Direction) {
ev.preventDefault();
ev.stopPropagation();
if (!this.assistant.forcedClosed) {
this.props.composerStore.autoCompleteOrStop(direction);
}

this.props.composerStore.autoCompleteOrStop(
direction,
this.assistant.forcedClosed && this.props.composerStore.canBeToggled
Copy link
Collaborator

Choose a reason for hiding this comment

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

would it makes sense to move this part of the condition && this.props.composerStore.canBeToggled in autoCompleteOrStop ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it makes sense, centralizing canBeToggled in autoCompleteOrStop keeps the decision in the store.

moved canBeToggled into autoCompleteOrStop.

When the formula assistant was force-closed, Enter/Tab were swallowed and
no action occurred. Users could not confirm edits (including plain text).

Composer now tells the store when the assistant is force-closed. Enter/Tab
confirm the edit if the assistant is open; otherwise, they stop the edition.

Task: 5153666
@dhrp-odoo dhrp-odoo force-pushed the saas-18.4-fix-composer-enter-tab-assistant-closed-dhrp branch from d05e4ec to 1fcabef Compare November 3, 2025 05:58
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.

4 participants