Skip to content

Instantly share code, notes, and snippets.

@cmorisse
Created August 13, 2019 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmorisse/6fd5d3ede6bd587c48ca26eb7d84ae7d to your computer and use it in GitHub Desktop.
Save cmorisse/6fd5d3ede6bd587c48ca26eb7d84ae7d to your computer and use it in GitHub Desktop.
to allow vscode debugger to run on odoo
diff --git a/odoo/fields.py b/odoo/fields.py
index e4b153f3982..76caf1f38c5 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -333,6 +333,7 @@ class Field(MetaField('DummyField', (object,), {})):
def __getattr__(self, name):
""" Access non-slot field attribute. """
+ print(name)
try:
return self._attrs[name]
except KeyError:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment