When a domain field value is edited via the debug textarea, no search_count is done for performance reasons. A single exception is done when saving the record. Then we check the validity of the domain created in the debug textarea in order to avoid to save an invalid domain in db (and get tracebacks,..). The problem is that a search_count can take a very long time to be executed if the domain is valid. Here we introduce a route /web/domain/validate in order to quickly check the validity of a domain and use it in domain field in order to fix the above mentionned performance issue. Note that the search_count is still done if it useful but does not have to be waited anymore. X-original-commit: 40288221c39ff8fba41cd6ac231ab33600dc0cd4 Part-of: odoo/odoo#128913 Co-authored-by: Oliver Dony <odo@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
18 lines
407 B
Python
18 lines
407 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from . import utils
|
|
from . import action
|
|
from . import binary
|
|
from . import database
|
|
from . import dataset
|
|
from . import domain
|
|
from . import export
|
|
from . import home
|
|
from . import pivot
|
|
from . import profiling
|
|
from . import report
|
|
from . import session
|
|
from . import view
|
|
from . import webclient
|
|
|
|
from . import main # deprecated
|