Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4925 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 24
2006
9
čvn 23
13005
0
čvc 24
3064
0
čvc 22
60
1
čvc 22
2957