From: Alicia FLOREZ Date: Wed, 15 May 2013 15:13:27 +0000 (+0200) Subject: Affichage de la liste des réponses pour une question données en vue Kanban (youpi) X-Git-Url: http://git.inspyration.org/?p=OpenERP%2Ffaq.git;a=commitdiff_plain;h=ad8a1caa88d4cfc6863609aa2eace1fbf46743b4 Affichage de la liste des réponses pour une question données en vue Kanban (youpi) --- 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 : )

+