使用模块 https://www.odoo.com/apps/modules/7.0/one2many_sorted/
把字段定义改写成:
'warehousing': one2many_sorted.one2many_sorted('spare.part.warehousing', 'warehousing_id', 'Warehousing', order=('date DESC')),
按date 降序输出
使用模块 https://www.odoo.com/apps/modules/7.0/one2many_sorted/
把字段定义改写成:
'warehousing': one2many_sorted.one2many_sorted('spare.part.warehousing', 'warehousing_id', 'Warehousing', order=('date DESC')),
按date 降序输出
转载于:https://my.oschina.net/u/241688/blog/687742