Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4916 Vistas

I am trying to select records for the Many2many field . The number of records are more than 80. Normally if there are more than 80 records, I'll have to select 80 records then click on "add an item" and again add the rest of the records, and repeat this procedure until all the records are selected. Is there a way by which I can select more than 80 records in one go.

I tried giving a large value for the tree view definition. But it didn't work out. Here is a snap of my code..

work_order_ids = fields.Many2many('project.project', string="Work Orders")
<field name="work_order_ids">
<tree limit="10000">
<field name="create_date"/>
<field name="partner_id"/>
<field name="contact_admin"/>
<field name="order_type_id"/>
<field name="order_status_id"/>
<field name="is_edit"/>
<field name="user_id" string="Assigned To"/>
<field name="fulfilled_partner_id"/>
</tree>
</field>


Avatar
Descartar
Mejor respuesta

Try adding the attribute `limit` to the field definition:

    work_order_ids = fields.Many2many('project.project', string="Work Orders", limit=10000)

Otherwise, you can click upon the small number you see in the top-right corner of your tree view and select the number of records you want to be showed.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 24
1967
9
jun 23
12987
0
jul 24
3015
0
jul 22
60
1
jul 22
2911