تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3236 أدوات العرض

Hello mates,

I need a solution for my problem in odoo v12.

Py code:

@api.multi
def print_invoice(self):
new_context = dict(self._context, print_mode=True)
return self.env.ref('account.account_invoices').with_context(new_context).report_action(self)

In web module for adding some condition in template_view.xml of web module







dkmnskdjgnjdsifhgdoisfugh











This qweb report not printing print_mode value. When i print context in python it does print that value as True but when i try to print in report it's not printed in report. Anyone have idea about this how to print print_mode value in qweb report?


Thanks in advance.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 25
1418
0
يناير 24
1653
0
يناير 24
1343
3
أكتوبر 23
5913
0
يوليو 22
2469