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

I need to restore the "country" field (country_id) by default of the partners form (res.partners.form) that I deleted some time ago. In the exports of people, that field still appears, but it is no longer visible in the form. And I also need to delete a custom field that I created called "Pais2"

Avatar
Zrušit
Nejlepší odpověď

Hi,

You might have deleted the field from the view either using the custom module or by editing the view from the front end by activating the developer mode. You can understand this by looking at your database.


If you have replaced the field using a custom module, you can uninstall the module. If the field is replaced by editing the view from the front end, activate the developer mode and open the corresponding form and click the debugger button near the logged in users name and click the Edit Form View button and check whether you can see a field named country_id in the architecture or in the inherited views. If field is existing check whether there is a invisible="1" attribute along with the field, if exist change it to invisible="0" .


if you don't want to loose time for searching the above, you can directly add a field to the view by activating  the developer mode, see this: Add Field to the View


Thanks

Avatar
Zrušit
Autor Nejlepší odpověď

I reviewed the suggestions sent previously, and I could not solve the problem. The problem is that the "country" field (country_id) disappeared from sight. And I added the field "Pais2" that created a column in the database other than "country". The problem is that the "country" field is not in invisible mode within odoo studio. And besides, I'm not allowed to delete the "Pais2" field that I created. In this link is the HTML code of the view.

https://drive.google.com/open?id=1xwz0YyCi7CcD_rOdbY9mt1wZRCBbGkAW


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 25
989
1
bře 23
4604
Editing Fields Vyřešeno
2
lis 20
3326
0
zář 24
140
1
bře 25
3371