Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个字段名称为 Car 的模型,用户可以在其中编写汽车模型,所以我想计算每个模型的数量。我之前在看
self.env['car.model'].search_count(['car_model', '=', 'name_of_model'])
所以我想计算用户写的每一个数据,但是动态的