在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"/>

相关文章:

  • 2021-10-07
  • 2021-11-20
  • 2021-10-25
  • 2021-07-14
  • 2021-03-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-11
  • 2022-12-23
  • 2021-10-22
  • 2022-01-26
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案