Skip to content

Commit

Permalink
[UPD] #728 set portal user to noupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Oct 22, 2024
1 parent 79031ec commit de8f583
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bankayma_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"name": "BANKayma",
"summary": "BANKayma base module",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"development_status": "Alpha",
"author": "Moshchot Coop",
"license": "AGPL-3",
Expand Down Expand Up @@ -62,6 +62,7 @@
"web_widget_pattern",
],
"data": [
"data/res_users.xml",
"security/bankayma_base.xml",
"security/ir.model.access.csv",
"views/res_company.xml",
Expand Down
4 changes: 4 additions & 0 deletions bankayma_base/data/res_users.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="base.template_portal_user_id" model="res.users" />
</odoo>
11 changes: 11 additions & 0 deletions bankayma_base/migrations/16.0.1.0.1/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from openupgradelib.openupgrade import migrate


@migrate()
def migrate(env, version=None):
env["ir.model.data"].search(
[
("module", "=", "base"),
("name", "=", "template_portal_user_id"),
]
).noupdate = True

0 comments on commit de8f583

Please sign in to comment.