如何在search中动态的显示和隐藏tree中的字段

在tree定义 invisible 来自context

<field name="country_id" invisible="context.get('invisible_country', True)"/>

在search中传入 对应的 key 和value。

<filter string="Show Countries" context="{'invisible_country': False}" help="Show Countries"/>

posted on 2013-10-25 12:07  Odoo在中国  阅读(291)  评论(0编辑  收藏  举报

导航