Skip to content

Commit

Permalink
[MIG] : Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Deriman-Alonso committed Apr 22, 2024
1 parent 8da7b62 commit 7223375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions product_variant_name/init_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
logger = logging.getLogger(__name__)


def post_init_hook(cr, registry):
def post_init_hook(env):
"""Init product variant name with product template name"""
logger.info("Setting product variant name with product template name")
cr.execute(
env.cr.execute(
"""
UPDATE product_product pp
SET name = pt.name
Expand Down
2 changes: 1 addition & 1 deletion product_variant_name/tests/test_product_variant_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestProductVariantName(TransactionCase):
def setUp(self):
super(TestProductVariantName, self).setUp()
super().setUp()
self.product_tmpl_model = self.env["product.template"]
self.product_model = self.env["product.product"]

Expand Down

0 comments on commit 7223375

Please sign in to comment.