Skip to content

Commit

Permalink
Fix type problems
Browse files Browse the repository at this point in the history
  • Loading branch information
fkantelberg committed Nov 11, 2024
1 parent 609252c commit 87756a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions abandoned_carts/wizard/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ class CustomerWizard(models.TransientModel):

@api.model
def set_fix_customer(self):
user = self.env.ref("base.group_portal").id
user_internal = self.env.ref("base.group_user").id
user = self.env.ref("base.group_portal")
user_internal = self.env.ref("base.group_user")

system_users = user.browse()
system_users = self.env["res.users"].browse()
for ref in ("base.user_root", "base.public_user"):
rec = self.sudo().env.ref(ref, False)
if rec:
Expand Down Expand Up @@ -123,8 +123,8 @@ def set_fix_customer(self):
self._cr.execute(
qry,
(
user,
user_internal,
user.id,
user_internal.id,
),
)
data = self._cr.fetchall()
Expand Down

0 comments on commit 87756a0

Please sign in to comment.