Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
1980 Tampilan

im using ondelete parameter in several fields but somehow im getting this warning

WARNING prestaterreihza odoo.fields: Field certification.agreement.agreement_ids: unknown parameter 'ondelete', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

this is one of my warning field

    agreement_ids = fields.One2many('certification.agreement.line', 'agreement_id', string='Agreement Line', ondelete='cascade')

is there any requirement or something that needed to use the ondelete parameter? im currently in odoo 17

Avatar
Buang
Jawaban Terbai

ondelete normally use for m2o and selection field, not o2m field. If you get warning for m2o field please check if your many2one field is store or not

Avatar
Buang
Jawaban Terbai

no you can use this to only in m20 example agreement_id in this field

Avatar
Buang
Penulis Jawaban Terbai

for addition, i also have a many2one field that has ondelete parameter and it also gives a warning message

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mei 23
2571
3
Jul 25
2550
1
Jun 25
3790
2
Mei 25
2545
1
Mei 25
1624