تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1572 أدوات العرض

I have tried several solutions on the web and forums however none of those work.


here is what I have tried very simply:


1.

% if object.amount_untaxed < 200: 
​it is okay
% endif

2.
% if object.amount_untaxed "< 200":
​it is okay
% endif

3.
% if object.amount_untaxed < "200":
​it is okay
% endif

4.
% if object.amount_untaxed < 200:
​it is okay
% endif

5.
% if object.amount_untaxed "< 200":
​it is okay
% endif

6.
% if object.amount_untaxed < "200":
​it is okay
% endif

object.amount_untaxed is monetary type data, is the problem related with it? If so, what is the solution?

Thank you so much!

الصورة الرمزية
إهمال

For me, odoo replaces the < and > signs to &lt; &gt; as html thing, and omit that, it is jinja line! Of course, i use code view for editink code snippets in emails. I search for a solution for this. with CDATA i can enter the lt gt signs without the xml replace, but it does not seems to work. But try it guys, maybe you have more fortune than me!

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أبريل 24
1667
1
أبريل 25
1763
0
مارس 24
1013
1
ديسمبر 22
3177
1
أكتوبر 21
3083