Skip to Content
Menu
This question has been flagged
2425 Views

In the same module I have my model "cot" where I have a many2one field to select information from model "inf", in "inf" I have 3 different columns (name, email, phone), but I have to select the information from a specific one, how to do it with xml? 

I've been reading i need to use a domain, but i don't get it

<data>
<xpath expr="//field[@name='x_name']" position="attributes">
<attribute name="string">Cot</attribute>
</xpath>
<xpath expr="//group[@name='studio_group_30613c_left']" position="inside">
<field name="x_studio_descripcin" string="Descripción" attrs="{}" required="1"/>
<field name="x_studio_email" widget="many2one"/> ---This field is where i want to see the data of "email"
<field name="x_studio_cliente"/>
<field name="x_studio_levantamiento" string="Levantamiento"/>
<field name="x_studio_estatus" string="Estatus"/>
<field name="x_studio_costo" string="Costo"/>
<field name="x_studio_costo_venta" string="Costo venta"/>
<field name="x_studio_ganancia" string="Ganancia"/>
<field name="x_studio_tiempo_de_respuesta" string="Tiempo de respuesta"/>
<field name="x_currency_id" attrs="{}" invisible="1"/>
</xpath>
</data>

I don't know if I'm clear, hope so

Avatar
Discard

An idea:

You can use related fields

@Sehrish
Your idea saved my day, thanks.