2024-10-02 02:37:06 发布
网友
如何将下面的sql查询更改为ODOORM
select max(dnddate) from ink where id = 23 and type= 'h' and kar not in ("5") group by customer;
是这样的
inks = self.env['ink'].read_group([ ('id', '=', 23), ('type', '=', 'h'), ('kar', 'not in', ("5"))], ['dnddate:max'], ['customer'])
了解模型。了解组()
https://www.odoo.com/documentation/13.0/reference/orm.html#search-read
是这样的
了解模型。了解组()
https://www.odoo.com/documentation/13.0/reference/orm.html#search-read
相关问题 更多 >
编程相关推荐