Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
8306 Prikazi

Hello,


I use odoo 10 and import products with my own code. This is working, but I added now a function, to save some infos and reload at next import:

if (os.path.isfile(self.data_path + '/remainingAccessories.npy')):
logger.info("load saved remaining Accessories file: " + self.data_path + '/remainingAccessories.npy')
remainingAccessories = np.load(self.data_path + '/remainingAccessories.npy')
logger.info("remaining Accessories size : " + len(remainingAccessories))
else:
remainingAccessories = {
}


The probem is always (np.load) ... when the code reach this line, I get:

WARNING company odoo.sql_db: Cursor not closed explicitly

When I use this line in a own python programm, I get no problem. And why are loading  numpy saved file run in a SQL error?


Thank you! 


Avatar
Opusti
Avtor Best Answer

Ok, I found it:

there was an error in the code and the exception are not printed. So I thought it is a sql problem.


We can close here

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
avg. 22
15185
1
maj 20
6013
2
jul. 25
4637
2
dec. 24
7780
2
nov. 24
28550