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

Typing lost on `for rec in self.search([])`

Open andg-odoo opened this issue 1 month ago • 1 comments

Your setup Version: 1.1.1 Operating System: Ubuntu 24.04 IDE and/or Integration tool (for example: Vscode - official extension): Neovim 0.11

Describe the bug Unlike other for record in self loops, if you perform for record in self.search() typing is lost on the iteration value. Appears to be similar to #419 and probably a similar fix?

To Reproduce Perform a hover on a for record in self.search() call.

Expected behavior Model typing should transfer to the iteration variable.

Screenshots

Image

andg-odoo avatar Nov 24 '25 18:11 andg-odoo

Hello @andg-odoo

Thank you for reporting it!

Indeed it seems to be caused by a tricky issue, but we are working on it!

mmahrouss avatar Nov 25 '25 14:11 mmahrouss