summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-10 10:08:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-10 10:08:50 +0700
commitf0f31234dfaa22850ebb502211a4488b4981f17c (patch)
tree3ab1a41c19ac6c3ecb2abd64addf2159a08e8bdf /indoteknik_custom
parent8a70abf6f05e9ffc6e74ec2e80f61db72f6f0401 (diff)
change text to html in customer review
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/customer_review.py1
-rw-r--r--indoteknik_custom/views/customer_review.xml2
2 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/customer_review.py b/indoteknik_custom/models/customer_review.py
index 5fb93b2e..d64d2d5a 100644
--- a/indoteknik_custom/models/customer_review.py
+++ b/indoteknik_custom/models/customer_review.py
@@ -8,6 +8,7 @@ class CustomerReview(models.Model):
customer_name = fields.Char(string='Customer')
image = fields.Binary(string='Image')
ulasan = fields.Char(string='Ulasan')
+ ulasan_html = fields.Html('Ulasan html', sanitize_attributes=False, sanitize_form=False)
name = fields.Char(string='Name')
jabatan = fields.Char(string='Jabatan')
status = fields.Selection([
diff --git a/indoteknik_custom/views/customer_review.xml b/indoteknik_custom/views/customer_review.xml
index 7d7e66df..b01c5bf5 100644
--- a/indoteknik_custom/views/customer_review.xml
+++ b/indoteknik_custom/views/customer_review.xml
@@ -33,7 +33,7 @@
<field name="sequence"/>
<field name="image"/>
<field name="customer_name"/>
- <field name="ulasan"/>
+ <field name="ulasan_html"/>
<field name="name"/>
<field name="jabatan"/>
<field name="status"/>