Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5866 Vues

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.

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mars 15
6744
0
mars 15
3148
3
juil. 24
8178
3
juin 17
7926
0
avr. 17
2982