Odoo Help

0

0
8 答案
2
头像

Keyur 印度

--Keyur--
1235
| 4 4 10
Ahmedabad, 印度
--Keyur--

Odoo Expert

Keyur 印度
2013/5/28 上午2: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 秘鲁
2013/5/28 下午1: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 印度
2013/12/6 上午9:02

@keyur can u give your <blockTable style>

1
Daniel Palomino 秘鲁
2013/5/28 下午1: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 荷兰
2013/5/28 下午5:15

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

Daniel Palomino 秘鲁
2013/5/28 下午5: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 印度
2013/12/6 上午8:56

I am facing same problem, i want repeat column

Rihene 法国
2015/9/1 上午6:22

Is anyone here please

0
camp 印度
2015/8/3 上午3: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

提问
Keep Informed
2 关注者(s)
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