Skip to Content
Menu
This question has been flagged

When i'm trying to pass data in context using in report printing, its not passed or just lost somwhere in functions calls. 

For example in the Sale Order Report  Document "sale.report_saleorder_document" this block of code is never printed even we pass the 'proforma' variable to the context in the print_quotation method or from button attribute context

<t t-if="env.context.get('proforma', False) or is_pro_forma">

         <span>Pro-Forma N° </span>

</t>

Even printing Context in report (env.context) we get always this:

{'lang': 'fr_FR', 'tz': 'Africa/Algiers', 'uid': 1, 'commit_assetsbundle': True, 'debug': False}


Avatar
Discard
Related Posts Replies Views Activity
1
Oct 21
2595
1
Dec 19
2870
1
Aug 19
3008
2
May 18
2124
0
Feb 18
4162