Skip to content

Perf issue with web_m2x_options #615

@hparfr

Description

@hparfr

Hello,

Steps to reproduce:

On a clean base, create a new partner, in Company field enter one character then enter another one, then another one.
6 requests are sent

  • name_search (3 times)
  • check_access_rights (3 times)

Expected:
4 requets:

  • name_search (3 times)
  • check_access_rights (1 time)

Depending of the config set, there can be one more extraenous requests after each key press
https://github.com/OCA/web/blob/8.0/web_m2x_options/static/src/js/form.js#L113

Before working on a patch, Is there a reason why this kind of work are processed client side ?

Ping @codingforfun

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions