This question has been flagged
4 Replies
5493 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

Avatar
Discard

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

Author

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

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

Best Answer

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.

Avatar
Discard