Hi all,
I am trying to do a report.
The report fields are as follows :
CRM(partner name) - CRM (stage name) - INVOICES (invoice total sum )
The problem is that I cannot link CRM table (crm.lead) with table (crm.stage) directly and then to invoices related to the (partner_id)
Anyone knows how to solve this ?
Thanks
query = """
select * from table_1 t1, table_2 t2
where t1.field_1=t2.some_field
"""
self.env.cr.execute(query)
data = self.env.cr.fetchall()
in data you have all of your column which you need in the report.