Improved cursor position after auto complete interferes with live template completion
Closed this issue · 4 comments
The "Improved cursor position after selecting model name, field name,... completion items" in 2024.2.0 causes live templates to be interrupted by exiting the dynamic template variable completion.
For example, this template to create a Many2one field ends immediately after auto-completing the model name, instead of jumping to the next dynamic variable.
Hello @ThomasDePontieuSomko ,
I could not reproduce the problem. Here is my screencast:
Screen.Recording.2024-03-06.at.20.59.49.mov
Hi @trinhanhngoc ,
I've done some more testing and it seems that the problem only occurs when the next dynamic value in the template is positioned before the one completed by the odoo plugin. So for example:
Templates that have the issue:
$VAR_2$ = fields.Many2one('$VAR_1$', string='$VAR_3$')
Templates that don't have the issue:
field_name = fields.Many2one('$VAR_1$', string='$VAR_2$')
$VAR_3$ = fields.Many2one('$VAR_1$', string='$VAR_2$')
Where the templates cycles through the dynamic variables in the following order VAR_1 > VAR_2 > VAR_3
Thank you for the additional information. I confirm the issue. This issue will be addressed in the next version.
The new version 2024.2.1 has been released with the fix for this issue.