Tree 视图中的 分组计算
- 
tree 视图中的 分组计算 
 文档中没找到资料
 代码中折腾半天,找到些线索
 例子1:
 'progress': fields.float('Progress', readonly=True, group_operator='avg'),
 <field name="progress" sum='Progress' widget='progressbar'/>
 例子2:
 'price_standard': fields.float('Products Value', readonly=True, group_operator="sum"),
 <field name="price_standard" sum="Products Value"/>
 看起来是 字段定义中要定义一下 group_operator,但是例子1 ,似乎跟xml定义又不一致,看起来是XML 优先。
 除了 sum 可以直接在xml中定义,别的操作 必须在 py中定义一下group_operator,
 搜了一下,可用的操作有:sum,avg,max,min

