Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
5067 มุมมอง

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?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง