Skip to content

[11.0] Parent Asset is required endless loop error when created a "New" Asset Profile #1974

Open
@hp-data

Description

@hp-data

Summary:
When creating a "NEW" asset profile, the "Parent Asset" field is required. The "Asset Profile" cannot be "Saved" unless a "Parent Asset" is created. The user is forced into selecting "Create and Edit" in the "Parent Asset" field, which results in a new dialog box, which also requires a "Parent Asset" in order to "save". This endless loop continues, effectively rendering the module unusable.

Module

account_asset_management

Describe the bug

See "Summary" above

To Reproduce

See its below to reproduce

Affected versions:
Odoo 11 CE - Odoo version 11.0-20210922

Steps to reproduce the behavior:

  1. Install the module account_asset_management.
  2. Attempt to create an "Asset Profile"
  3. Fill out the "New" asset profile form, leave the "Parent Asset" field blank and attempt to save it. This should display a RED warning letting you know that a "Parent Asset" is required.
  4. In the "Parent Asset" field, select "Create and Edit" and in the resulting dialog box complete the form and attempt to save the "Parent Asset" it should throw an error indicating that a "Parent Asset" is required.

Expected behavior
You should be allowed to create an "Asset Profile" without the need(required) "Parent Asset" and/or correctly handle the creation of a "Parent Asset"

Additional context
Debian 4.9.320-2 (2022-06-30) x86_64 GNU/Linux
Python 2.7.13
Odoo version 11.0-20210922

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions