Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] product_configurator (Sessions being removed) #65

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions product_configurator/wizard/product_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,12 +888,6 @@ def write(self, vals):

return super(ProductConfigurator, self).write(vals)

def unlink(self):
"""Remove parent configuration session along with wizard"""

self.mapped("config_session_id").unlink()
return super(ProductConfigurator, self).unlink()

def action_next_step(self):
"""Proceeds to the next step of the configuration process. This usually
implies the next configuration step (if any) defined via the
Expand Down
4 changes: 2 additions & 2 deletions product_configurator_mrp_component/models/mrp_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class MRPBoM(models.Model):
@api.depends("bom_line_config_ids", "product_tmpl_id")
def _compute_available_config_components(self):
"""Compute list of products available for configurable components"""
if self.config_ok and not self.product_id:
for bom in self:
for bom in self:
if bom.config_ok and not bom.product_id:
bom.available_config_components = False
products = self.env["product.template"].search(
[
Expand Down