Skip to Content
Menu
This question has been flagged
3 Replies
3791 Views

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

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


Avatar
Discard
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
Discard
Author

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

Related Posts Replies Views Activity
2
Jan 25
6839
1
Apr 24
2819
1
Dec 23
5076
2
Nov 22
4182
0
Nov 22
3967