Answering my own question, this is what I did:

Made a custom module wich inherits res.partner class and adds a "related" 
field, this way:

class res_partner(osv.osv) :
    _name = 'res.partner'
    _inherit = 'res.partner'
    _columns = {
        
'phone':fields.related('address','phone',type='char', 
string='Phone'),
    }

res_partner()


And the corresponding view:


&nbsp; &nbsp; &nbsp; <record>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<field>res.partner.tree.form.inherit</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field>res.partner</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <tree>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </tree>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </field>
&nbsp; &nbsp; &nbsp; &nbsp; </record>





-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=51519#51519

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to