Skip to content

Slug validation error during module installation #1

@themreza

Description

@themreza

When installing graphql_vuestorefront, it attempts to validate the website slug for an ir.ui.view record corresponding to graphql_vuestorefront/views/product_views.xml.

However, the check doesn't take into account records that don't have a slug (self.website_slug being False) and prevents installation, stating the slug is already in use.

I had to add if self.website_slug at the beginning to bypass the error.

https://github.com/odoogap/vuestorefront/blob/14.0/graphql_vuestorefront/models/product.py#L25

image

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