Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3436 Weergaven

Hi Community,

I made a wizard of model product.product which pop up while clicking a button.The wizard arrived but the search view which i specified is not appearing in the wizard.

This is my code

@api.multi
def action_view_variants(self):
return {
'name': _('Product Variants'),
'view_type': 'form',
'view_mode': 'tree',
'view_id': self.env.ref('variants_view.product_product_add_product_view').id,
'res_model': 'product.product',
'search_view_id': self.env.ref('product.product_search_form_view').id,
'type': 'ir.actions.act_window',
'target': 'new',
}

Thanks in advance

Avatar
Annuleer
Auteur Beste antwoord

Hi,

I solved this issue by changing 'target' to 'current'(search view appears in 'current'). Still cant get the answer for the search view in the wizard on a button click.

Thanks

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
jul. 20
4078
1
dec. 19
10450
3
nov. 23
17496
3
nov. 24
25138
1
apr. 23
6187