تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3435 أدوات العرض

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يوليو 20
4073
1
ديسمبر 19
10446
3
نوفمبر 23
17487
3
نوفمبر 24
25134
1
أبريل 23
6185