It is currently Sun Feb 12, 2012 8:05 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: XM Display problem
PostPosted: Wed Mar 03, 2010 11:25 am 
Offline

Joined: Tue Aug 14, 2007 4:08 pm
Posts: 360
Hello all,
I created a new field in the partners called reseller_id which is
'reseller_id': fields.many2one('res.partner','Reseller', select=2"),

This is working fine. Now, I'm trying to add a new page on my partner form to list, for a partner, all his clients.

So I made something like that :
<notebook>
<page>
<tree>
<field colspan="4" name="name" attrs=" {('reseller_id','=','parent.partner_id')]}/>
</tree>
</page>
</notebook>

But it's not working
If someone has an idea, ;)

Thanks for your help


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2010 8:40 am 
Offline

Joined: Tue May 05, 2009 8:54 am
Posts: 15
Hi forstera,
First of all i can see syntactical errors.
like in "attrs", this is not the valid python dictionary syntax.I think you are missing its key.
eg: if you want to set all parent.partner_id in reseller_id, you can use invisible key like
attrs="{'invisible': [('reseller_id', '!=', 'parent.partner_id')]}"
And in Your notebook code try this:

<notebook>
<page>
<field colspan="4" mode="tree" name="reseller_id" attrs="{'invisible': [('reseller_id', '!=', 'parent.partner_id')]}"/>

</page>
</notebook>

Hope i understood your exact requirement.
Thanks,
SSI


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 21, 2010 7:43 am 
Offline

Joined: Tue Aug 14, 2007 4:08 pm
Posts: 360
Hello ssi,

I didn't saw your answer .. I'm going to try your solution :)

Thank's very much for your help; it's great ! :)

Arnaud


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP