odoo-ide / pycharm-odoo

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

Support custom auth methods for http route #380

Closed jerzyk closed 1 year ago

jerzyk commented 1 year ago

route decorator (odoo.http.route) accepts auth arguments that has 3 options

if you would like to add additional auth method, there is a false positive error

you can add new methods, by adding _auth_method_<name> class method to ir.http model

so there is a possibility to check for valid newly defined methods

trinhanhngoc commented 1 year ago

@jerzyk Thanks for the information. I didn't know that Odoo has that feature. I will add support for custom auth methods in a future release.

trinhanhngoc commented 1 year ago

Hi @jerzyk . The new version 2023.6.2 has been released with support for custom auth methods. The Odoo plugin now also provides the ability to navigate to auth method implementations.

image image
jerzyk commented 1 year ago

works perfectly! thanks!