需求: 单据中 明细行 根据单据的值来隐藏某一列 (字段)

使用 attrs="{''invisible": [('parent.xx', '=', 'x')]}"

这个时候 隐藏只能隐藏值 不能隐藏健 

odoo column_invisible

后续使用了 column_invisible 就ok了 

attrs="{''column_invisible": [('parent.xx', '=', 'x')]}"
 

总结: 使用invisible="1" 也可以直接隐藏,但是遇到attrs="{'invisible': []}" 这样的 invisible就不行了 需要使用column_invisible

相关文章:

  • 2022-02-27
  • 2021-09-16
  • 2022-03-01
  • 2021-06-13
  • 2021-07-05
  • 2022-01-25
  • 2021-06-15
猜你喜欢
  • 2021-07-15
  • 2021-06-21
  • 2021-12-23
  • 2021-07-28
  • 2021-09-09
相关资源
相似解决方案