This question has been flagged
2 Replies
6256 Views

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

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

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
Discard