Odoo 8 选择元素后从ListView启动向导8

Odoo 8 选择元素后从ListView启动向导8,odoo-8,wizard,Odoo 8,Wizard,我的任务是从列表视图中选择几个元素,然后单击添加到“更多”选项中的“显示向导按钮”! 下面我的代码添加了按钮,但不在ListView中,而是在单击元素并显示formView之后添加的 Mytestmodule.wizard.py: class wiz(models.TransientModel): _name = 'mytestmodule.wizard' name=fields.Text() @api.multi def create_reque

我的任务是从列表视图中选择几个元素,然后单击添加到“更多”选项中的“显示向导按钮”! 下面我的代码添加了按钮,但不在ListView中,而是在单击元素并显示formView之后添加的

Mytestmodule.wizard.py:

class wiz(models.TransientModel):
    _name = 'mytestmodule.wizard'
    name=fields.Text()    
    @api.multi    
    def create_request(self):
        print "You click finish"
        return True
我的向导表单:

<record model="ir.ui.view" id="mywiz" >   
 <field name="name">mywiz</field>       
 <field name="model">mytestmodule.wizard</field>          
 <field name="arch" type="xml">            
 <form string="my wizard">          
 <group>                  
 <field name="name"/>           
 </group>                 
 <footer>                  
 <button name="create_request" string="Finished" type="object"   class="btn-primary"/>     
 <button string="Cancel"  class="btn-default"  special="cancel" />  
 </footer>              
 </form>         
 </field>      
 </record>

麦维兹
mytestmodule.wizard
添加的按钮:

<act_window id ="addedButton" name="Show wizard"
res_model="mytestmodule.wizard" 
src_model="mytestmodule.people" 

view_type="tree"            
view_mode="form"
target="new"
 />

我知道它一定是少了什么东西,或者必须在标签上更改!但我不知道怎么做。
提前感谢。

我通过在标签中添加multi=“True”属性解决了这个问题:

<act_window id ="addedButton"
            name="Show wizard"
            res_model="account_voucher_bymail.wizard"
            src_model="account.invoice"
            view_type="tree"
            view_mode="tree,form"
            target="new"
            multi="True"
             />