我们可以通过点击按钮获得带有搜索字段和选择字段的产品列表吗?
return {
'type': 'ir.actions.act_window',
'view_type': 'tree',
'view_mode': 'tree',
'res_model': 'product.product',
'views': [(False, 'tree')],
'name': 'Bulk Products',
'target': 'new',
}
它仅显示没有搜索和选择字段的产品列表。
答案 0 :(得分:0)
我假设你想打开向导,在向导中你需要product.product选择字段来选择产品
首先需要创建向导 并在向导.py文件中创建字段
@click.command()
@click.option('--help')
def help():
"""Simple program that greets NAME for a total of COUNT times."""
for x in range(count):
click.echo(get_help_message())
def get_help_message():
return "I AM A HELP MESSAGE!"
并在表单视图中将此字段放在向导的xml文件中。
因此将出现带有搜索更多选项的产品列表