Hello,
I fiddled around with the form view, as I wanted to add a second image to the product basic form.
Therefore, I first created the field:
- Settings - Databse Structure - Models
- searched for product.template
- Edited this model by adding a new field called "x_secondpicture" of type binary
Then, I activated the developer mode and wanted to edit the form view:
- Sales - Products - selected Form View - > "Manage Views"
- Selected "product.template.common.form" and clicked "edit"
- Found the node for the first image and clicked on "+" to insert a new node.
But now, I have two problems:
- For the second field, the widget "image" is not available - in fact no other widget except "manytomanyattendee" is available
- I inadvertently messed around with the original image node, and now I only have a download link available - I can't edit anything anymore.
Who can help?
I am not 100% sure if product.template.common.form is the view that i should have edited
still no one who knows anything about this?
@Jörg, in regards to fixing the view, i'd recommend going to the runbots: runbot.odoo.com and checking the view that you have edited on the 8.0 test database. You should just be able to replace this modified view with the original/default from the runbots to be back to normal on your database. I'd recommend doing a database backup before making any changes to the database or installing a new module, as it makes it far easier to rollback once you inevitably break something during development/testing.
Hello Luke, thank you for your answers, you helped me a lot. I will proceed as you recommended. Unfortunately, I do not have enough Karma to upvote your answers. Brgds Jörg
@Jörg, no problem. glad I could help.