File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 141
141
"Many2one field" : {
142
142
"prefix" : " oofmany2one" ,
143
143
"body" : [
144
- " ${1:field_name} = fields.Many2one('${2:comodel_name}', string='${3:${1/(.*?)_([a-zA-Z])/${1:/capitalize} ${2:/capitalize}/g}}')${0}"
144
+ " ${1:field_name}_id = fields.Many2one('${2:comodel_name}', string='${3:${1/(.*?)_([a-zA-Z])/${1:/capitalize} ${2:/capitalize}/g}}')${0}"
145
145
],
146
146
"description" : " Add many2one field"
147
147
},
148
148
"One2many field" : {
149
149
"prefix" : " oofone2many" ,
150
150
"body" : [
151
- " ${1:field_name} = fields.One2many('${2:comodel_name}', '${3:inverse_field_name}', string='${4:${1/(.*?)_([a-zA-Z])/${1:/capitalize} ${2:/capitalize}/g}}')${0}"
151
+ " ${1:field_name}_ids = fields.One2many('${2:comodel_name}', '${3:inverse_field_name}', string='${4:${1/(.*?)_([a-zA-Z])/${1:/capitalize} ${2:/capitalize}/g}}')${0}"
152
152
],
153
153
"description" : " Add one2many field"
154
154
},
155
155
"Many2many field" : {
156
156
"prefix" : " oofmany2many" ,
157
157
"body" : [
158
- " ${1:field_name} = fields.Many2many('${2:comodel_name}', string='${3:${1/(.*?)_([a-zA-Z])/${1:/capitalize} ${2:/capitalize}/g}}')${0}"
158
+ " ${1:field_name}_ids = fields.Many2many('${2:comodel_name}', string='${3:${1/(.*?)_([a-zA-Z])/${1:/capitalize} ${2:/capitalize}/g}}')${0}"
159
159
],
160
160
"description" : " Add many2many field"
161
161
},
You can’t perform that action at this time.
0 commit comments