Trying to get list of customers only on dropdown with a many2one relationship, habve this on the xml:
<record model="ir.ui.view" id="libro_form_view">however, i still get list of all contacts. What ma i missing?
<field name="name">libro.form</field>
<field name="model">produccion.libro</field>
<field name="arch" type="xml">
<form string="Libro Form">
<sheet>
<group>
<field name="partner_id" widget="res_partner_many2one" context="{'res_partner_search_mode': 'customer'}"/>
<field name="num_desde"/>
<field name="num_hasta"/>
<field name="letra"/>
<field name="activo"/>
</group>
</sheet>
</form>
</field>
</record>
Workingon Odoo13