I see your title targets python in V9 but your question might be broader. The Python version used in Odoo V9 is still 2.7 so nothing has changed there. The main change is the new Odoo API V9 and that more modules have been migrated in to the new API. You can still use the old API since they didn't remove it yet, so technically you can code just as you did. I do advise you to use the V8/V9 API though! It is better and Odoo will push out the old API in Odoo V10 (or V11).
Some specific changes that are not related to Python: you can no langer use Xpath expressions with string searches. An example:
The @string is no longer supported, so you will have to use other ways such as name or class. There are some minor changes but so far I could write about anything I'd like without problems.
To sum it up in one line: On Python level the only change is the V7 API to the V8/V9 API, but you could still work with the old API if you'd really like to. Pure Python code should work just like it always did.
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: 11/12/15, 4:09 AM|
|Seen: 588 times|
|Last updated: 11/12/15, 10:26 AM|