Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1725 Visualizzazioni

in my odoo  survey.survey inherits from abstract model where a field is added :

_ruid = fields.Char('ruid', default=False, index=True, store=True)

the value is generated by a  uuid.uuid4() after init on create 

i try to get the _ruid field from a survey record i get error :

AttributeError: 'survey.survey' object has no attribute '_ruid'

on the other hand if i run an Sql query it's there and i can access it just fine

self.env.cr.execute("select _ruid from survey_survey where id=4​"


PS: this only happens when i run server in test mode. (part of transaction case test ) 

where is the problem ?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 24
1197
1
lug 24
1991
1
gen 23
3885
0
ott 22
1512
0
ago 22
3