Skip to content
Snippets Groups Projects
Commit 186b5992 authored by jerome hanke (jhk)'s avatar jerome hanke (jhk)
Browse files

[FIX]website_partner:partner description is now translatable


Steps to reproduce:
-install website, website_partner, contacts and studio
-go to contacts and open any partner
-click the studio icon (top-right corner of the screen)
-add the 'website_description' field to the partner

Previous behavior:
the description field is not translatable and attempting to
change the "translatable" option in technical > fields spawns
an error

Current behavior:
the description field is translatable

opw-2155115

closes odoo/odoo#41990

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 321fc5b3
Branches
Tags
No related merge requests found
......@@ -2,13 +2,14 @@
from odoo import api, fields, models
from odoo.addons.http_routing.models.ir_http import slug
from odoo.tools.translate import html_translate
class WebsiteResPartner(models.Model):
_name = 'res.partner'
_inherit = ['res.partner', 'website.seo.metadata', 'website.published.mixin']
website_description = fields.Html('Website Partner Full Description', strip_style=True)
website_description = fields.Html('Website Partner Full Description', strip_style=True, translate=html_translate)
website_short_description = fields.Text('Website Partner Short Description')
@api.multi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment