Skip to content

[15] Wrong stock quantity by location on product.template  #506

Description

@jprokop1

After migration to 15.0 the stock quantity on locations from product views (model product.template) are wrong, but from variants view (model product.product) OK.
Quick and dirty fix in stock_location.py (only for one variant by product):
if template_id:
product = self.env['product.product'].search([("product_tmpl_id", "=",template_id)] )[0]

Regards

Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions