Odoo Help

-2

Edit Tree view

By
Jihen BEN ALI
on 9/2/15, 4:21 AM 1,014 views

Hi,

I have this tree view in which I want to organize the two fields (receipt_amount and payment_amount) to be displayed on the same line.

My xml file:

<record model="ir.ui.view" id="view_caisse_tree">

<field name="name">caisse.report</field>

<field name="model">caisse.report</field>

<field name="type">tree</field>

<field name="arch" type="xml">

<tree string="Caisse">

<field name="date_confirm"/>

<field name="receipt_amount" attrs="{'invisible':[('receipt_amount','=',0.0)]}"/>
<field name="payment_amount" attrs="{'invisible':[('payment_amount','=',0.0)]}"/> 

</tree>

</field>

</record>

 In this link you will find the image to more understand my problem:

http://www.filedropper.com/sanstitre

Any help please

if this is a treeview, they are already in the same line.

Tarek Mohamed Ibrahim
on 9/3/15, 4:08 AM

Get a look please in the image and you will get it

Jihen BEN ALI
on 9/3/15, 4:16 AM

Hi Serpent, Try this one please: http://s2.postimg.org/mbjq9l7g9/Sans_titre.png

Jihen BEN ALI
on 9/3/15, 6:30 AM
0

Jihen,

In the tree view, you cannot make fields invisible based on conditions.

The fields are arranged column-wise.

You must correct the question.

There is no image on your URL.

Thanks.

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

Question tools

1 follower(s)

Stats

Asked: 9/2/15, 4:21 AM
Seen: 1014 times
Last updated: 9/3/15, 9:43 AM