Community mailing list archives

community@mail.odoo.com

Re: Show Chart in Qweb Report

by
kha
- 10/27/2015 05:11:55
Hi Yassine ,

for the 2 features that you want , you need to change this part in survey_template.xml.( you focus on red area )

 <template id="multiple_choice" name="Multiple choice">
        <div class="row">
            <div t-foreach='question.labels_ids' t-as='label' t-attf-class="col-md-#{question.column_nb}">
                <label t-att-class="' bg-success ' if quizz_correction and label.quizz_mark > 0.0 else ''">
                    <input type="checkbox" t-att-name="'%s_%s' % (prefix, label.id)" t-att-value='label.id' />
                    <span t-field='label.value'/>
                </label>
            </div>
            <div t-if='question.comments_allowed and question.comment_count_as_answer' class="js_ck_comments col-md12">
                <label>
                    <input type="checkbox" t-att-name="'%s_%s' % (prefix, -1)" value="-1" />
                    <span t-field="question.comments_message" />
                </label>
                <input type="text" class="form-control" t-att-name="'%s_%s' % (prefix, 'comment')"/>
            </div>
            <div t-if='question.comments_allowed and not question.comment_count_as_answer' class="col-md-12">
                <span t-field="question.comments_message"/>
                <input type="text" class="form-control" t-att-name="'%s_%s' % (prefix, 'comment')" data-oe-survey-othert="1"/>
            </div>
        </div>
    </template>




On Tue, Oct 27, 2015 at 9:22 AM, Yassine Teimi <yteimi01@gmail.com> wrote:
Hi Guys, 

I'm also working on Human ressources evaluation based on survey module, if any of you have already worked on it, please tell me how you did it, because the survey module have several limitations, I have several features to add to the survey roadmap : 



On another hand, I want to create a custom report for the evaluation form, in another words, the existing report layout (when trying to print the evaluation) is not enough for me, I want to change the template to a better one. 
How can I achieve this kind of requirement ? 

Thanks for your replies.


2015-10-26 14:12 GMT+01:00 bouzakri khalil <khalilbouzakri@gmail.com>:
Hello ,

I already develop a custom report for survey module , I used the nvd3 ,it is the chart projet used by Odoo 

On Mon, Oct 26, 2015 at 2:02 PM, Vincent Koeswanto <m26412105@john.petra.ac.id> wrote:
Hello All,

I create custom report for survey module that I build. I wonder to know how to show a chart in qweb pdf report for example bar chart or pie chat. I already tried google chart in my another project (not using odoo, but php). google chart use javascript to load the chart. Anyone can help me? the goal is to show a chart in qweb generated reports. I also would like to know if there is anyone who has been make module to handle 360 degree employee evaluation. Thankyou.

Sincerely,
Vincent K Edison 26412105

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Sincerely
Khalil Bouzakri
Skype: Khali Bouzakri

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--

Cordialement

Yassine TEIMI

Consultant & Odoo Project Manager
TEL : +212 6-27 33 30 78

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Cordialement 
Khalil Bouzakri
Skype: Khali Bouzakri
0669175514