Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4979 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
feb. 24
2070
9
jun. 23
13060
0
jul. 24
3131
0
jul. 22
60
1
jul. 22
3029