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.

-2

Edit Tree view

By
Jihen BEN ALI
on 9/2/15, 4:21 AM 660 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

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 9/3/15, 6:17 AM

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.

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: 9/2/15, 4:21 AM
Seen: 660 times
Last updated: 9/3/15, 9:43 AM