Skip to content

Commit

Permalink
[IMP] Change from Transient to regular Model
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrwilson committed Apr 26, 2022
1 parent c6082ca commit 88cc8fe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion product_configurator/wizard/product_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def convert_to_cache(self, value, record, validate=True):
)


class ProductConfigurator(models.TransientModel):
class ProductConfigurator(models.Model):
_name = "product.configurator"
_inherits = {"product.config.session": "config_session_id"}
_description = "Product configuration Wizard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from odoo.tools.safe_eval import safe_eval


class ProductConfiguratorMrp(models.TransientModel):
class ProductConfiguratorMrp(models.Model):
_name = "product.configurator.mrp"
_inherit = "product.configurator"
_description = "Product Configurator MRP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from odoo import fields, models


class ProductConfiguratorPurchase(models.TransientModel):
class ProductConfiguratorPurchase(models.Model):

_name = "product.configurator.purchase"
_inherit = "product.configurator"
Expand Down
2 changes: 1 addition & 1 deletion product_configurator_sale/wizard/product_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from odoo import api, fields, models


class ProductConfiguratorSale(models.TransientModel):
class ProductConfiguratorSale(models.Model):

_name = "product.configurator.sale"
_inherit = "product.configurator"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from odoo import models


class ProductConfiguratorSale(models.TransientModel):
class ProductConfiguratorSale(models.Model):
_inherit = "product.configurator.sale"

def _get_order_line_vals(self, product_id):
Expand Down
2 changes: 1 addition & 1 deletion product_configurator_stock/wizard/product_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from odoo import fields, models


class ProductConfiguratorPicking(models.TransientModel):
class ProductConfiguratorPicking(models.Model):

_name = "product.configurator.picking"
_inherit = "product.configurator"
Expand Down

0 comments on commit 88cc8fe

Please sign in to comment.