码迷,mamicode.com
首页 > 其他好文 > 详细

【odoo】关联字段的增删改

时间:2020-07-29 10:37:26      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:bsp   values   from   nbsp   record   man   rds   The   val   

(0, _, values)

Adds a new record created from the provided value dict.

(1, id, values)

Updates an existing record of id id with the values in values. Can not be used in create().

(2, id, _)

Removes the record of id id from the set, then deletes it (from the database). Can not be used in create().

(3, id, _)

Removes the record of id id from the set, but does not delete it. Can not be used on One2many. Can not be used in create().

(4, id, _)

Adds an existing record of id id to the set. Can not be used on One2many.

(5, _, _)

Removes all records from the set, equivalent to using the command 3 on every record explicitly. Can not be used on One2many. Can not be used in create().

(6, _, ids)

Replaces all existing records in the set by the ids list, equivalent to using the command 5 followed by a command 4 for each id in ids.

【odoo】关联字段的增删改

标签:bsp   values   from   nbsp   record   man   rds   The   val   

原文地址:https://www.cnblogs.com/xushuotec/p/13394921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!