Skip to Content
Menú
This question has been flagged

I created a many2one field to select a product in a form. I filter the possible items to choose with a domain:

`light_system = fields.Many2one('product.product', string='Lighting System', ondelete='restrict', domain=[('categ_id.name', '=','Lighting System')])`

Is it possible to get the category to be set to "Lighting System" by default when I choose to create a new item directly from this field with 'create new""' or 'create and edit""' ?

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de des. 16
2926
0
de març 15
5529
2
de febr. 25
5709
1
de des. 24
5912
1
de des. 24
1324