Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Drilling down to more than 3 level in export

By
Mathieu Laflamme
on 8/12/16, 3:54 PM 182 views

I noticed I cannot export product categories while exporting account.invoice records. I dig into the code a bit and found this:

<div t-name="Export.TreeItems"

t-foreach="fields" t-as="field"

t-att-data-id="field.id"

class="o_export_tree_item"

tabindex="-1"> <!-- tabindex make the div focusable -->

<span t-if="field.children &amp;&amp; (field.id).split('/').length != 3"

class="o_expand_parent fa fa-plus"/>

<span class="o_tree_column"><t t-esc="field.string"/></span>

</div>

I removed this condition that check how many text block there is after splitting with "/" character, which is how many levels:

&amp;&amp; (field.id).split('/').length != 3

But still, it doesn't show any + signs after 3 levels :(

I suspect in the code something that would set field.children to false when getting to level 3, I don't know.

My next question will be how to make a module that change this. I want to allow drilling to 5 levels.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/12/16, 3:54 PM
Seen: 182 times
Last updated: 8/12/16, 5:26 PM