odoo-ide / pycharm-odoo

PyCharm plugin for Odoo
https://plugins.jetbrains.com/plugin/13499-odoo
Other
41 stars 5 forks source link

Debugging an Odoo model variable causes "TypeError: get_str() takes 2 positional arguments but 3 were given" #460

Closed Jerther closed 4 months ago

Jerther commented 4 months ago

Hello!

I can no longer debug Odoo model variables in the debugger's "Variables" tab:

image

I get around that by writing "picking.read()" or "str(picking)". Not ideal though.

trinhanhngoc commented 4 months ago

Hello @Jerther ,

The same issue was reported at https://github.com/odoo-ide/pydevd-odoo/issues/5 and fixed. Please upgrade pydevd-odoo.

Jerther commented 4 months ago

Sorry I forgot to include the plugin's version :sweat_smile: 2024.1.2.233

trinhanhngoc commented 4 months ago

Sorry I forgot to include the plugin's version 😅 2024.1.2.233

@Jerther , The issue is actually at pydevd-odoo. You need to upgrade pydevd-odoo.

https://github.com/odoo-ide/pydevd-odoo/issues/5.

Jerther commented 4 months ago

Oh sorry! My bad :) Let me try.

Jerther commented 4 months ago

I was using 1.2.1, that's indeed fixed in 1.2.2! Thanks and sorry :sweat_smile: