OdooView constructor

const OdooView({
  1. required String id,
  2. required String name,
  3. required String model,
  4. required ViewType viewType,
  5. String? docModule,
  6. String? inheritId,
  7. List<OdooField> topLevelFields = const [],
  8. List<OdooGroup> groups = const [],
  9. List<NotebookPage> pages = const [],
  10. bool? createButton,
  11. bool? deleteButton,
  12. bool? editButton,
  13. String? customCSS,
  14. bool editable = false,
  15. bool? decorationDanger,
  16. String? defaultOrder,
  17. bool? noCreate,
  18. String? kanbanClass,
  19. bool? quickCreate,
  20. String? groupBy,
  21. int priority = 16,
  22. required DateTime createdAt,
  23. required DateTime updatedAt,
})

Implementation

const OdooView({
  required this.id,
  required this.name,
  required this.model,
  required this.viewType,
  this.docModule,
  this.inheritId,
  this.topLevelFields = const [],
  this.groups = const [],
  this.pages = const [],
  this.createButton,
  this.deleteButton,
  this.editButton,
  this.customCSS,
  this.editable = false,
  this.decorationDanger,
  this.defaultOrder,
  this.noCreate,
  this.kanbanClass,
  this.quickCreate,
  this.groupBy,
  this.priority = 16,
  required this.createdAt,
  required this.updatedAt,
});