Skip to Content
Menu
This question has been flagged
3 Replies
3103 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
1
Apr 24
1474
1
Dec 23
2745
2
Nov 22
2424
0
Nov 22
2740
0
Oct 22
1070