summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorjerome hanke (jhk) <jhk@odoo.com>2019-12-17 10:30:57 +0000
committerjerome hanke (jhk) <jhk@odoo.com>2019-12-17 10:30:57 +0000
commit767f25cc4e0e7d3f8722eb5ed5ca79b811a31ea2 (patch)
tree1a26dcda22074f98a2802e2c1da7a1a785bf28db /addons
parent4e536a4ac018361ce926a94d77483f7413001e0d (diff)
[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#42043 X-original-commit: 186b599246321465eae937b875b6c970656b145a Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/website_partner/models/res_partner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website_partner/models/res_partner.py b/addons/website_partner/models/res_partner.py
index d80f2b6f056..3124b89685e 100644
--- a/addons/website_partner/models/res_partner.py
+++ b/addons/website_partner/models/res_partner.py
@@ -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_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')
def _compute_website_url(self):