Odoo Help

0

0
8 Answers
2
Avatar

Keyur อินเดีย

--Keyur--
1235
| 4 4 10
Ahmedabad, อินเดีย
--Keyur--

Odoo Expert

Keyur อินเดีย
28/5/13 02:34

Hi, Daniel. I think concept of repeatIn with <section> you defined in second <td> is a bit confusing.

The use of repeatIn is to repeat rows, one can not restrict columns. Here you have defined repeatIn for second column only with <section>.

Try to write like this,

<blockTable style="row" colWidths="10cm,3cm" >
    <section>
        <para>[[ repeatIn(the_data['shop']['products'], 'product') ]]</para>
        <tr>
            <td>
                <para style="default_bold">[[ the_data['shop']['name'] or '' ]]</para>
            </td>
            <td>
                <para style="default_right">[[ product['amount'] and formatLang(product['amount'], digits=2) or '0' ]]</para>
            </td>
        </tr>
    </section> 
</blockTable>

Now that will work properly.

Thanks.

2 ความคิดเห็น
Daniel Palomino เปรู
28/5/13 13:18

Thanks Keyur for your help, but i've tried that form too and have not been successful, because it repeat only the rows again.

Today, i get the answer: In the file bin/report/preprocess.py there is a list

rml_parents = ['tr','story','section']

that not have a definition about 'td', then when the openerp try to find the parent tag 'td' it fails.

Fortunately it only works locally and can modify this list to

rml_parents = ['td','tr','story','section'] and worked fine !!!.

Jagdish Panchal อินเดีย
6/12/13 09:02

@keyur can u give your <blockTable style>

1
Daniel Palomino เปรู
28/5/13 13:14

Thanks Keyur for your help, but i've tried that form too and have not been successful, because it repeat only the rows again.

Today, i get the answer: In the file bin/report/preprocess.py there is a list

rml_parents = ['tr','story','section']

that not have a definition about 'td', then when the openerp try to find the parent tag 'td' it fails.

Fortunately it only works locally and can modify this list to

rml_parents = ['td','tr','story','section'] and worked fine !!!.

4 ความคิดเห็น
patrick เนเธอร์แลนด์
28/5/13 17:15

Be careful when you do an upgrade of openERP. Because files in that location can be overridden by the upgrade....

Daniel Palomino เปรู
28/5/13 17:23

I've revised different versions of openerp and the definition of rml_parents = ['tr','story','section'] in bin/report/preprocess.py is iqual.

Jagdish Panchal อินเดีย
6/12/13 08:56

I am facing same problem, i want repeat column

Rihene ฝรั่งเศส
1/9/15 06:22

Is anyone here please

0
camp อินเดีย
3/8/15 03:59

hi keyur,

 can you help me to find answer for this question? please.

https://www.odoo.com/forum/help-1/question/varying-table-alignment-while-using-pto-and-pto-header-in-rml-88818

Ask a Question
ป้ายกำกับ
Keep Informed
2 ผู้ติดตาม
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now