Files
mymach_fleet_intelligence/addons/mymach_fleet_intelligence/check_fields.py

7 lines
223 B
Python

# -*- coding: utf-8 -*-
env = env(user=1)
model_obj = env['mymach.fleet.handover']
print("FIELDS OF mymach.fleet.handover:")
for f_name, f_obj in model_obj._fields.items():
print(f"Field: {f_name}, Type: {f_obj.type}")