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

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

Avatar
Discard
Best Answer

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

Avatar
Discard