Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2482 Widoki

UncaughtPromiseError > OwlError 
Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property) 
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property) 
at handleError 
 
Caused by: TypeError: Cannot read properties of undefined (reading 'get') 
at model.getFieldValue

Following is the class definition :

from odoo import fields, models

class Member(models.Model):

_name = "library.member"

_description = "Library Member"

_inherits = {"res.partner": "partner_id"}

_inherit = ["mail.thread", "mail.activity.mixin"]

card_number = fields.Char()

partner_id = fields.Many2one(

"res.partner", delegate=True, ondelete="cascade", required=True

)


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 21
1347
0
lis 16
4248
1
lut 25
1104
5
cze 24
3610
0
lut 25
2034