From 5c4c8ca532f5f6c98bc4959cd035fe948306a76c Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 6 Nov 2017 14:35:02 +0100 Subject: [PATCH] ADD tree,search, group. Order model, order tree. --- models/coworker.py | 1 + views/coworker_views.xml | 45 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/models/coworker.py b/models/coworker.py index 0716e93..a4817b4 100644 --- a/models/coworker.py +++ b/models/coworker.py @@ -8,6 +8,7 @@ class Coworker(models.Model): """ Coworker model """ _name = 'coworking.coworker' _description = 'Coworker model definition' + _order = 'id desc' name = fields.Char(required=True) firstname = fields.Char('First name', required=True) diff --git a/views/coworker_views.xml b/views/coworker_views.xml index a33d447..6075b8a 100644 --- a/views/coworker_views.xml +++ b/views/coworker_views.xml @@ -35,11 +35,13 @@ + + Coworker Tree coworking.coworker - + @@ -48,4 +50,45 @@ + + + + Coworker Search + coworking.coworker + + + + + + + + + + + + + + + + + + + + + + + + + + + + +