📜  映射方法 odoo - 任何代码示例

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

代码示例1
# returns a list of names
records.mapped('name')

# returns a recordset of partners
record.mapped('partner_id')

# returns the union of all partner banks, with duplicates removed
record.mapped('partner_id.bank_ids')