Skip to content

Commit 4359b2a

Browse files
committed
Merge PR #1360 into 16.0
Signed-off-by pedrobaeza
2 parents 00a34b9 + 1dd87a0 commit 4359b2a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
2+
3+
from openupgradelib import openupgrade
4+
5+
6+
@openupgrade.migrate()
7+
def migrate(env, version):
8+
"""Migrate note field from Text to Html"""
9+
openupgrade.convert_field_to_html(
10+
env.cr, "account_payment_mode", "note", "note", False, True
11+
)

account_payment_mode/models/account_payment_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AccountPaymentMode(models.Model):
6767
related="payment_method_id.code", readonly=True, store=True
6868
)
6969
active = fields.Boolean(default=True)
70-
note = fields.Text(translate=True)
70+
note = fields.Html(translate=True)
7171
sequence = fields.Integer(default=10)
7272

7373
@api.onchange("company_id")

0 commit comments

Comments
 (0)