Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3475 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 20
4122
1
ธ.ค. 19
10505
How to track One2many field in Odoo12? แก้ไขแล้ว
3
พ.ย. 23
17571
Error: Couldn't load module web แก้ไขแล้ว
3
พ.ย. 24
25280
How I get the current ID of a record ? แก้ไขแล้ว
1
เม.ย. 23
6248