Skip to Content
Menu
This question has been flagged
1 Reply
4053 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
Feb 24
836
9
Jun 23
11120
0
Jul 24
1500
0
Jul 22
60
1
Jul 22
1404