跳至内容
菜单
此问题已终结
1 回复
6007 查看

Hi,

I want to set new template in rml according to the condition. I tried the below code but not succeeded yet.

Code:

<docAssign var='n' expr='5'/>
<docIf cond='n>5'>
  <setNextTemplate name="sec"/>
  <includePdfPages filename="Sales Order.pdf" />
  <nextFrame/>

<docElse/>
  <para style="terp_default_8"> </para>
</docIf>

Please help me to set the template.

Thank you.

形象
丢弃
最佳答案

Hi Stephen,

I'm facing the same problem... It seems that conditional formatting is not yet implemented in OpenERP's RML processing. It's explained in this thread I just found out, conditional formatting must be done other way. Check it out: https://www.odoo.com/forum/help-1/question/reportlab-conditional-table-header-15143

形象
丢弃
相关帖文 回复 查看 活动
2
3月 15
6914
0
3月 15
3298
3
7月 24
8499
3
6月 17
8070
0
4月 17
3207