Odoo Help

0

Where are the .pyc files from my custom addon?

By
Darrel
on 12/5/14, 4:09 PM 1,687 views

I have an issue where my python changes are not being picked up, even though I am restarting the server between edits.

The .pyc files are not, as they normally would be, in the same place as their .py counterparts. When I run the code, I get a python exception which shows the updated source, but is clearly not actually executing the source code which is being shown in the exception. If I could find the .pyc file I would delete it, but it isn't there.

 

To demonstrate the issue:

new_id = super(stock_move_too, self).create(cr, uid, vals, context=context)
UnboundLocalError: local variable 'stock_move' referenced before assignment

 

'stock_move' does not even exist as a variable anywhere in the source file, wherever the pyc file is, it's not being updated when the server restarts.

Can you please paste code of your custom module file.

Jagdish Panchal
on 12/5/14, 10:53 PM
0
Jagdish Panchal
On 12/5/14, 10:52 PM

This link may help you : link

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 12/5/14, 4:09 PM
Seen: 1687 times
Last updated: 3/16/15, 8:10 AM