Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2475 Zobrazení

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

)


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
lis 21
1345
0
lis 16
4243
1
úno 25
1097
5
čvn 24
3602
0
úno 25
2029