Hello, I tried to use the website module and started noticing that Odoo text font size max only 62 px. What if I want to have more than 62 px? Can I change this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hello @mike chen
Hope you are doing well.
Yes, you can change the font size above 62px in Inline Text.
First you need to inherit web_editor preserve template.
Please find code in comment.
Hope it will be helpful to you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Please find code here :-
file path like:
static/src/xml/editor.xml
editor.xml
<?xml version="1.0" encoding="UTF-8"?>
<template id="template" xml:space="preserve">
<t t-name="web_editor.toolbar" t-extend="web_editor.toolbar">
<t t-jquery='div[id="font-size"] ul' t-operation='append'>
<!-- here set 66px font size.
take data-arg1="66px" -->
<li><a class="dropdown-item custom_font_size" href="#" data-call="setFontSize" data-arg1="66px">66</a></li>
</t>
</t>
</template>
After add this file in module you need to link this file in manifest
like,
'assets': {
'web_editor.assets_wysiwyg': [
'your_module_name/static/src/xml/editor.xml',
],
}
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Website Creator stuck - don't show website builder
Diselesaikan
|
|
4
Des 23
|
4053 | |
|
0
Nov 23
|
1296 | ||
|
2
Jun 24
|
6370 | ||
|
2
Apr 23
|
2566 | ||
Odoo 16 Website home page widget disable
Diselesaikan
|
|
2
Apr 23
|
3153 |