Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3450 Widoki

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lip 20
4093
1
gru 19
10474
3
lis 23
17512
3
lis 24
25150
1
kwi 23
6198