Completions/references/definitions for fields in Python (already done in XML)
class Foo(models.Model):
def fun(self):
self.env['foo.bar'].|
Two approaches:
Self-contained: perform rudimentary analysis by walking the AST to determine if expression is a model type, then generate completions based on that information.
Doable, does not depend on Python
Con: duplicates the work of Pyright
Pyright: find a way to supplement type info for Pyright from outside
If successful, other features can benefit as well
Con: Pyright does not expose an easily consumable API
Completions/references/definitions for fields in Python (already done in XML)
Two approaches: