pycharm-odoo icon indicating copy to clipboard operation
pycharm-odoo copied to clipboard

Resolve base model members for BaseModel instances

Open trinhanhngoc opened this issue 1 year ago • 0 comments

Sometimes you need to annotate the type of an object as a recordset in general using BaseModel. In this situation it would be nice to support code completion and navigation for members from the base model as well since all models inherit it.

image

https://github.com/odoo/odoo/blob/a33dbdb5c7190205a88e253676a3b63fa22ad6f1/odoo/tests/form.py#L124 https://github.com/odoo/odoo/blob/a33dbdb5c7190205a88e253676a3b63fa22ad6f1/odoo/addons/base/models/ir_ui_view.py#L2505

trinhanhngoc avatar Apr 10 '23 10:04 trinhanhngoc