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} |