📜  编写自定义查询 odoo - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:16.476000             🧑  作者: Mango

代码示例1
self.env.cr.execute("your query goes here ")
values = self.env.cr.dictfetchall() // here you will get the values
 for index in range(0, len(values)):
                print(f"\n\n {values[index].get('key_name')}  \n\n")