Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如下图: 1、需要在明细行中的一个字段显示是button(图中为Remark处),这个button可以点击弹出wizard。
button
wizard
测试发现:Remark处可以显示button但是不能click。
@hui 不能在字段上直接写class='btn',必须重新写一个button,然后type='object',就可以执行对应的name的方法了。
class='btn'
type='object'
name
<field name="remark"/> <button class="btn btn-xs" string="Add" name="update_remark" type="object" attrs="{'invisible': [('remark', '!=', False)]}"/>