summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorIEL <iel@odoo.com>2020-11-04 13:48:50 +0000
committerIEL <iel@odoo.com>2020-11-05 13:20:26 +0000
commit5b022f433a44e627541d30ae21d7a867f4a3a6ff (patch)
treebce1c96eba0df7a0dcab9cd83fafd858bd4fa724 /addons/web/static/src/js/fields
parent651da2fe8694ed0003a9dd0801c71f2ef26cedb9 (diff)
[FIX] web: force ltr for phone numbers in reports
FYI: while letters are written right to left in languages like hebrew, arabic, persian, the numbers (including phone numbers) are written left to right STEPS: * via Odoo Studio add Address block (select "doc > Customer" for field expression) * create a sale order for customer with rtl language * set phone number for the customer with plus sign, e.g. +1 222 33 44 55 * print Quotation / Order BEFORE: 222 33 44 55 1+ or similar mess AFTER: +1 222 33 44 55 WHY: * css is copy-pasted from ui.scss: https://github.com/odoo/odoo/blob/6ba81c99d0c7f8e57ae573318f5e3d1ff53fa561/addons/web/static/src/scss/ui.scss#L91-L98 * Address block already has o_force_ltr class https://github.com/odoo/odoo/blob/6ba81c99d0c7f8e57ae573318f5e3d1ff53fa561/odoo/addons/base/views/ir_qweb_widget_templates.xml#L35-L36 DEPLOYMENT: to fix phone in footer, you need to upgrade ``web`` module --- opw-2368525 closes odoo/odoo#61410 X-original-commit: 6f0957466165a418762d10ddac658d642547a9cb Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions