Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Tryton Tryton
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 792
    • Issues 792
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 98
    • Merge requests 98
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TrytonTryton
  • TrytonTryton
  • Issues
  • #12549
Closed
Open
Issue created Sep 04, 2023 by Cédric Krier@ced⚛Owner

Active toggle button visibe on model without active field.

The display of the active button in screen container has been set in the property domain_parser by e7059be59f9e and c3cba41333ad. But the domain parser may not be called if it is cached or if the context screen is not valid (in search_filter). This leads to the active button being displayed for model without an active field defined. So the user can click on it which trigger a KeyError in ModelStorage.check_domain.

This can be reproduced by opening "Stock Moves by Warehouse" on a setup with 2 warehouses defined (so no default warehouse is set such that the context screen is not valid).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking