Skip to content

Commit

Permalink
[IMP] account_payment_mode: change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
clementthomas committed Oct 1, 2024
1 parent 2d301bc commit 7984c5c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 1 addition & 2 deletions account_payment_mode/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@


def pre_init_hook(cr):
"""Adapt note field to HTML if already exists
"""
"""Adapt note field to HTML if already exists"""
if sql.column_exists(cr, "account_payment_mode", "note"):
field_name = "note"
table = "account_payment_mode"

Check warning on line 13 in account_payment_mode/hooks.py

View check run for this annotation

Codecov / codecov/patch

account_payment_mode/hooks.py#L12-L13

Added lines #L12 - L13 were not covered by tests
Expand Down
16 changes: 16 additions & 0 deletions account_payment_mode/migrations/16.0.2.0.0/post-migrate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import logging

from openupgradelib import openupgrade

_logger = logging.getLogger(__name__)


@openupgrade.migrate()
def migrate(env, version):
"""Migrate note field from Text to Html"""

openupgrade.convert_field_to_html(
env.cr, "account_payment_mode", "note", "note", False, True
)

0 comments on commit 7984c5c

Please sign in to comment.