Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3800 Widoki

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"/>
Awatar
Odrzuć
Autor Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

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

Ex.

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
2
sty 25
6865
computed fields Rozwiązane
1
kwi 24
2831
1
gru 23
5119
2
lis 22
4204
0
lis 22
3979