odoo-ide / pycharm-odoo

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

Take in account selection_add #462

Closed odoo-siqual closed 3 months ago

odoo-siqual commented 4 months ago

When I add elements to my state with selection_add, I still see an error for those elements when I use them in other parts of the code.

trinhanhngoc commented 4 months ago

Hello @odoo-siqual ,

Can you provide screenshots of your problem?

odoo-siqual commented 4 months ago

usage of selection_add error for element

trinhanhngoc commented 4 months ago

@odoo-siqual , what Odoo plugin version are you using?

odoo-siqual commented 4 months ago

2024.2.0.233

trinhanhngoc commented 4 months ago

Thank you for the information. I think I found the cause of the problem. A workaround is not using the translation function for selection labels. e.g.: _('Lost') => 'Lost'. I will address this issue in the next version.

odoo-siqual commented 4 months ago

Thank you.