hell guys:
I have an issue that I can not debug when ever I add domain to may wizard report , it giving me a blank page , here is my code
wizard model:
class tryinreports(models.TransientModel):
_name = 'pur.fet.rep'
_description = 'it is a test report'
pur_id = fields.Many2one('purchase.order', string='رقم العملية')
date_from = fields.Date('from date')
date_to = fields.Date('to date')
gggg = fields.Char()
def any_think(self):
data = {}
data['form'] = self.read()[0]
return self.env.ref('nidal.wizreport').report_action(self, data=data)
Wizard view :
xml version="1.0" encoding="utf-8"?>
id="wiz_rep_form" model="ir.ui.view">
name="name">wiz.rep
name="model">pur.fet.rep
name="arch" type="xml">
string="wiz from">
name="pur_id"/>
name="date_from"/>
name="date_to"/>
name="gggg"/>
Report xml and template:
xml version="1.0" encoding="utf-8"?>
id="wizreport" model="ir.actions.report">
name="name">wizperort
name="model">pur.fet.rep
name="report_type">qweb-pdf
name="report_name">nidal.report_pur_fet_rep
name="report_file">nidal.report_pur_fet_rep
name="binding_model_id" ref="model_good_good"/>
name="binding_type">report
id="report_pur_fet_rep">
t-call="web.html_container">
t-foreach="docs" t-as="o">
t-call="web.external_layout">
class="page">
تجربة التقرير
Hi
For further reference, you can refer to the blog, which will help with current issues
https://www.cybrosys.com/blog/how-to-create-a-pdf-report-in-odoo-15
Hope it helps