Skip to content

Commit

Permalink
Fix model reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ellbristow committed May 14, 2024
1 parent 4cccd52 commit 919ec19
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WizardSimpleCreateVariant(models.TransientModel):
)
variants_to_create = fields.Integer(compute="_compute_variants_to_create")
line_ids = fields.One2many(
comodel_name="wizard.create.variant.line",
comodel_name="wizard.simple.create.variant.line",
inverse_name="wizard_id",
string="Lines",
required=False,
Expand Down Expand Up @@ -46,7 +46,7 @@ def default_get(self, fields_list):

@api.onchange("product_tmpl_id")
def _onchange_product_tmpl(self):
line_model = self.env["wizard.create.variant.line"]
line_model = self.env["wizard.simple.create.variant.line"]
if self.product_tmpl_id:
lines = line_model.browse()
pending_variants = self.product_tmpl_id.attribute_line_ids
Expand Down Expand Up @@ -133,11 +133,11 @@ def action_create_variants(self):


class WizardCreateVariantLine(models.TransientModel):
_name = "wizard.create.variant.line"
_name = "wizard.simple.create.variant.line"
_description = "Wizard Create Variant Line"

wizard_id = fields.Many2one(
comodel_name="wizard.create.variant",
comodel_name="wizard.simple.create.variant",
string="Wizard",
required=False,
)
Expand Down

0 comments on commit 919ec19

Please sign in to comment.