From ad8a1caa88d4cfc6863609aa2eace1fbf46743b4 Mon Sep 17 00:00:00 2001 From: Alicia FLOREZ Date: Wed, 15 May 2013 17:13:27 +0200 Subject: [PATCH] =?utf8?q?Affichage=20de=20la=20liste=20des=20r=C3=A9ponses=20?= =?utf8?q?pour=20une=20question=20donn=C3=A9es=20en=20vue=20Kanban=20(youpi)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- demo/faq.xml | 2 +- faq.py | 4 +-- views/faq_view.xml | 72 +++++++++++----------------------------------------- 3 files changed, 18 insertions(+), 60 deletions(-) diff --git a/demo/faq.xml b/demo/faq.xml index 257f63f..2c2cdc3 100644 --- a/demo/faq.xml +++ b/demo/faq.xml @@ -20,7 +20,7 @@ Comment bien programmer ? - la phylosophie python + La phylosophie python diff --git a/faq.py b/faq.py index 0c8a268..ed1ad8c 100644 --- a/faq.py +++ b/faq.py @@ -18,7 +18,7 @@ class question(osv.Model): result={} for question in self.browse(cr, uid, ids, context=context): res=[] - for answer in question.aswers: + for answer in question.answers: res.append({'id': answer.id, 'name': answer.name}) result[question.id] = res return result @@ -28,7 +28,7 @@ class question(osv.Model): "description": fields.text(string="Description"), "theme_id": fields.many2one("faq.theme", string="Theme", required=True), "answers": fields.one2many("faq.answer" , "question_id", string="Answers"), - "answer_items": fields.function(_answer_items, string="Answer items") + "answer_items": fields.function(_answer_items, type="text", string="Answer items"), } class answer(osv.Model): diff --git a/views/faq_view.xml b/views/faq_view.xml index 44f64ed..e71d8d3 100644 --- a/views/faq_view.xml +++ b/views/faq_view.xml @@ -45,20 +45,6 @@

Questions

- -

-
- -

Domain:

-

String:

-

Views:

-

Relation:

-

Context:

-

Relation_field:

-

Selectable:

-

Type:

-

Value:

-

Raw_value:

@@ -106,57 +92,29 @@

-

Description

+

Question

- - - - - -

Tests

-

Domain: ()

-

String: ()

-

Views: ()

-

Relation: ()

-

Context: ()

-

Relation_field: ()

-

Selectable: ()

-

Type: ()

-

Value: ()

-

Raw_value: ()

- -

View 0:

-

Context 0:

+

Réponses

-
    -
  • - + +
      +
    • + + + +
    -
+

Pas de réponse pour l'instant.

+ +
- - 21 - 22 - 23 - + +

(ID : )

+
-- 1.7.10.4