Skip to content

Commit

Permalink
[FIX] account_cashbox: Remove obsolete unique constraint from account…
Browse files Browse the repository at this point in the history
…_cashbox_session due to new constraint added in db574bf#diff-fd2084468cbef678a2cb52e2257b09797d716c4ef6031d237b29f544ff6c0d77L40

closes #531

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
  • Loading branch information
rov-adhoc committed Sep 23, 2024
1 parent 242946c commit 2115a80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion account_cashbox/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Cashbox management",
"summary": "Introduces concept cashbox and accounting journal sessions",
"version": "16.0.1.4.0",
"version": "16.0.1.5.0",
"category": "Accounting",
"website": "www.adhoc.com.ar",
"author": "juanpgarza, ADHOC SA",
Expand Down
5 changes: 5 additions & 0 deletions account_cashbox/migrations/16.0.1.5.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from openupgradelib import openupgrade

@openupgrade.migrate()
def migrate(env, version):
env.cr.execute("ALTER TABLE account_cashbox_session DROP CONSTRAINT IF EXISTS account_cashbox_session_uniq_name")

0 comments on commit 2115a80

Please sign in to comment.