Skip to Content
Menu
This question has been flagged
4 Replies
4323 Views

I have erased the contact form, and im trying to get it back manually. Tried putting the form code in the html editor but breaks and odoo ask me to rebuild from template. what code should i put in order to get the form back?

Avatar
Discard
Author Best Answer

Thanks Karam, didnt work, but gave me some ideas.

worked deleting all "templates" somehow restarted the module.

Ermin, didnt help. Isn't easy to find out what and where inherit what or overides what.

Avatar
Discard
Best Answer

you can try to import it through the View list.
export the original from a new empty database.

1) In settings, Activate Debug mode
2) in setting navigate to Technical > user interface > Views
3) look for res.partner.form 
4) export it with the data you need (or try to copy the code from there if you havent completely deleted your Base view) and import back into your original DB

if you cannot create a new DB, you can open the odoo runbot.
http://runbot.odoo.com/runbot 

Avatar
Discard
Best Answer

You should try to update the "Contact Us" module.

Avatar
Discard
Best Answer

1) As Ermin Trevisan mentioned the easiest way would be to update the "Contact us" module.
2) You can edit or remove the view from the backend - go to the Settings/Views and search for "Contact"
- odoo will display two "Contact Us" views - the one without external id is that was edited by you.
Now you can remove it, refactor your code or replace it with code from another Odoo instance

Avatar
Discard