Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3261 Lượt xem

I am working on an odoo project that is in arabic. I have noticed that any custom  css class  that  i  inculde  in  qweb  template  has  its  direction  property  overwritten  to  rtl  not  matter  if  i  force  it  to  ltr  by  adding  !important. 

Do anybody has an idea on how odoo deal with RTL? it seams that there is a function that overwrittes all direction properties but i dont know which. version 14

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I found the solution. It is not an odoo problem but a rtlcss one. need to add /*rtl:ignore*/ just after the property definition.

\https://rtlcss.com/learn/usage-guide/control-directives/

Ảnh đại diện
Huỷ bỏ