Skip to Content
Menú
This question has been flagged
1 Respondre
4914 Vistes

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
Best Answer

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
Related Posts Respostes Vistes Activitat
1
de febr. 24
1965
9
de juny 23
12986
0
de jul. 24
3014
0
de jul. 22
60
1
de jul. 22
2908