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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/5/14, 4:09 PM|
|Seen: 1175 times|
|Last updated: 3/16/15, 8:10 AM|