Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
3801 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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


Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
2
led 25
6865
1
dub 24
2831
1
pro 23
5119
2
lis 22
4204
0
lis 22
3979