Skip to content

Commit

Permalink
shopfloor: fix upgrade to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Jan 21, 2022
1 parent 24ee669 commit 8fa79fe
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def _create_default_app(env):
"name": "Shopfloor WMS",
"short_name": "WMS",
"tech_name": "wms",
"auth_type": "api_key",
"category": "wms",
}
env["shopfloor.app"].create(values)
app = env["shopfloor.app"].create(values)
# Bypass ORM validation on `auth_type`
# as `shopfloor_mobile_base_auth_api_key` is not installed yet
env.cr.execute(
"UPDATE shopfloor_app SET auth_type='api_key' WHERE id=%s", (app.id,)
)

0 comments on commit 8fa79fe

Please sign in to comment.