Skip to Content
Menú
This question has been flagged
3 Respostes
3802 Vistes

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 Best Answer

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


Avatar
Descartar
Best Answer

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 ((

Related Posts Respostes Vistes Activitat
2
de gen. 25
6867
1
d’abr. 24
2831
1
de des. 23
5120
2
de nov. 22
4205
0
de nov. 22
3979