Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3017 Vizualizări

hi guys, I want to limit records listing in many2one field ,according to a number from a field inside settings menu?how can i do that?can anyone have a code snippet,thanks in advance

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You can use this OCA module: web_m2x_options

Once this is installed:


New options

create boolean (Default: depends if user have create rights)

Whether to display the "Create..." entry in dropdown panel.

create_edit boolean (Default: depends if user have create rights)

Whether to display "Create and Edit..." entry in dropdown panel

m2o_dialog boolean (Default: depends if user have create rights)

Whether to display the many2one dialog in case of validation error.

limit int (Default: openerp default value is 7)

Number of displayed record in drop-down panel


Thanks

Imagine profil
Abandonează