This question has been flagged
1978 Views

Hello.

I knew many persons asked this question before but I haven't found no solution for myself.

I have a WebKit report which uses sale.order model. In my *.py file there is no database connection, just math functions. but I need to get data from another model, stock.quant, which isn't connected with the first one. 

I use Mako templates.

So, there is no database cursor, no uid to create database connection. What can I do to get the data?

Thank you so much

Avatar
Discard