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

Infer type of create() and write()'s arguments as recordset values automatically

Open trinhanhngoc opened this issue 2 years ago • 0 comments

For unknown contexts such as in prepare methods, we can use the type hint for recordset values introduced in #194. For some common ORM methods such as create() and write(), we can automatically infer type of the arguments without the type hint. This improvement will add support for code completion and navigation for field names when reading/modifying values in create() and write().

https://github.com/odoo/odoo/blob/d534461a38817fe884a1ea10b3ca6eea39d1fca9/addons/sale/models/sale_order_line.py#L975 image

trinhanhngoc avatar Dec 20 '22 09:12 trinhanhngoc