projects
/
OpenERP
/
faq.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout de lien hypertext sur les réponses dans la vue KANBAN des questions
[OpenERP/faq.git]
/
views
/
faq_view.xml
diff --git
a/views/faq_view.xml
b/views/faq_view.xml
index
a0bdee2
..
eed8498
100644
(file)
--- a/
views/faq_view.xml
+++ b/
views/faq_view.xml
@@
-109,6
+109,7
@@
<field name="arch" type="xml">
<form string="Question Form" version="7.0">
<field name="name" />
<field name="arch" type="xml">
<form string="Question Form" version="7.0">
<field name="name" />
+ <field name="theme_id" />
<field name="description" />
<field name="answers" />
</form>
<field name="description" />
<field name="answers" />
</form>
@@
-123,7
+124,7
@@
<kanban>
<templates>
<t t-name="kanban-box">
<kanban>
<templates>
<t t-name="kanban-box">
- <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit faq_question_panel">
+ <div class="oe_kanban_card oe_semantic_html_override faq_question_panel">
<div class="oe_dropdown_kanban">
<div class="oe_dropdown_toggle">
<div class="oe_dropdown_kanban">
<div class="oe_dropdown_toggle">
@@
-136,7
+137,7
@@
</div>
<div t-attf-class="oe_kanban_content">
</div>
<div t-attf-class="oe_kanban_content">
- <h2><field name="name" /> (Thème : <field name="theme_id" />)</h2>
+ <h2><a t-att-href="'#id='+id+'&view_type=form&model=faq.question'" ><field name="name" /> (Thème : <field name="theme_id" />)</a></h2>
<h3><field name="description" /></h3>
<h4>Réponses :</h4>
<h3><field name="description" /></h3>
<h4>Réponses :</h4>
@@
-155,7
+156,9
@@
</div>
</t>
<t t-name="answer_template.sub">
</div>
</t>
<t t-name="answer_template.sub">
- <t t-esc="title"/> (ID : <t t-esc="id"/>)
+ <a t-att-href="'#id='+id+'&view_type=form&model=faq.answer'" >
+ <t t-esc="title"/>
+ </a>
</t>
</templates>
</kanban>
</t>
</templates>
</kanban>