我尝试添加文档说的内容,当我更新模块时,它不起作用。Odoo 8 - 在发票供应商表单中添加按钮
<record id="some_example_id" model="ir.ui.view">
<field name="name">example.name</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form" />
<field name="arch" type="xml">
<data>
<button name="invoice_cancel" position="after">
<button name="test_button" states="draft,proforma2,open" string="test" groups="base.group_no_one" class="oe_highlight"/>
</button>
</data>
</field>
</record>
试过,但仍不能工作。 – drkpkg
确保你已经安装了模块。有时我们尝试代码,但忘记安装模块。这发生了很多次。 –