Chen Log

陳洛格

RML之if…else判斷

leave a comment »

可使用

[[ 資料變數 == 0 and removeParentNode(‘para’) ]]

意思是:

如果 o.amount_tax 稅額總數等於零 就移除此段落,
此判斷需放在 para 符號範圍內。

[[ o.amount_tax == 0 and removeParentNode(‘para’) ]]

 

參考資料:

http://forum.openerp.com/forum/topic20739.html

 

Advertisements

Written by chenagw

2014/03/26 at 18:46

Posted in Uncategorized

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: