Skip to content

Possible Issue with setting part master to not track inventory #134

@jkelleyj

Description

@jkelleyj

In assemblies_part.rb, there is a after_create callback that disables inventory tracking for the master of the part.
https://github.com/spree-contrib/spree-product-assembly/blame/master/app/models/spree/assemblies_part.rb#L27

Is this the correct behavior, or should it actually be removing tracking of inventory on the assembly's master? I don't understand why we would want to turn tracking off for the part's master, because it could also be individually sold and need its own tracking. The guard means it will only occur for parts that have multiple variants, so it seems the intent was to turn off tracking on the part, I just don't understand why and thought I'd see if someone more knowledgeable with the project could look at this to see if this is the correct behavior.

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