Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
3794 Vistas

Hello. Why is the name field missing from XML in odoo 12 and I can't edit it now.  

All fields that are made through related disappeared from the views. 


Example : 


MODEL : 

partner = fields.Many2one('res.partner', required=True, ondelete='restrict')
name = fields.Char(related='partner.name', string='Resident Name', store=True,
track_visibility='onchange')

XML FIELD : 
<field name="name" required="1"/>
Avatar
Descartar
Autor Mejor respuesta

All fields that are made through related disappeared from the views. Not only the field from the example below was missing


Avatar
Descartar
Mejor respuesta

Hello Mikhail
Please Try with force_save="1", I think it's helpful for you.

Ex.

<field name="name" required="1" force_save="1"/>

Avatar
Descartar
Autor

No, the field is still invisible in the xml view (( and all other fields with related invisible too ((

Publicaciones relacionadas Respuestas Vistas Actividad
2
ene 25
6856
1
abr 24
2829
1
dic 23
5110
2
nov 22
4195
0
nov 22
3976