越南小伙(Odoo-ide Pycharm Plugin作者)出品,配合pycharm调试Odoo的Python代码使用。
https://github.com/odoo-ide/pydevd-odoo
pydevd-odoo
PyDev.Debugger is the Python debugger used in PyDev, PyCharm, VSCode. This plugin aims to make the debugger works better for Odoo.
Odoo Recordset
Recordsets is a fundamental concept in Odoo. A recordset is an ordered collection of records of the same model. Trying to read a field on multiple ids recordset will raise an error. Because PyDev.Debugger recognizes a recordset as a non-collection object so the error will be raise when evaluating its fields. This plugin helps PyDev.Debugger correctly evaluate a multiple ids recordset.
Installation
Install this plugin to the python environment in which the debugger runs.
pip install pydevd-odoo
Screenshots
PyCharm Debugger without this plugin
PyCharm Debugger with this plugin
解决了调试中无法查看记录集数据的问题。