Help

3

How to create an interactive block in odoo 8?

Avatar
Hamid Darabi

I'm trying to make a new block to use on my website pages. I managed to add one by modifying Odoo 8.0-20140918-103809\server\openerp\addons\website\views\snippets.xml though it's just a textbox and a button and doesn't come with any functionality. What is the best way to create a product in my product list and add the new product to user's shopping cart on my button's click event ? I appreciate any document or tutorial that helps me through this task.

1 Comment
Avatar
Discard
Avatar
Hamid Darabi
-

I realized that modifying the original website snippet.xml file is not the right way to do it. How can I inherit snippets in a new module and add new blocks without modifying the source code?