嗨,我在添加 action 类型的按钮时出错。我无法查看我的按钮。以下是我的vetclinic_view.xml
<record id="vetclinic_breed_action" model="ir.actions.act_window">
<field name="name">Breed</field>
<field name="res_model">vetclinic.breed</field>
<button name="add_field" string="Add Field" type="object" class="oe_highlight" />
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Click create record.</p>
</field>
这是我的vetclinic.py
class vetclinic_breed(osv.Model):
_name="vetclinic.breed"
_columns={
'name':fields.char('Name',size=32),
}
def add_field(cr,self,uid,id):