Skip to Content

Contributors

Re: Snippet examples

Thanks Benjamin. I'm a bit rusty on the Odoo development these days, guess it's time to get back in the game.

You mean a snippet like this could live in the OCA/website repo somewhere? Ok, will have a look.

And thanks for the info on the talk, I am attending the Odoo XP so will check that out.

-Torvald




tor. 1. okt. 2020 kl. 11:17 skrev Benjamin Brich <b.brich@humanilog.org>:

Hi Torvald,

 

You can check this repo to get some inspiration: https://github.com/OCA/website/ There are a couple of great examples for building snippets.

 

Furthermore there is a talk about ‘How to develop Building Blocks’ today at 5 pm CET live @ odoo xp.

 

I hope this helps. Don’t forget the issue and PR for your new snippet in the github repo.

 

warm Regards

 

Ben

 

Benjamin Brich
Humanitarian Logistics Organisation e.V. (HLO)
Phone: +49 40 228686751
Cell: +49 160 97467007
b.brich@humanilog.org

Winsbergring 2
22525 Hamburg
Germany

www.humanilog.org

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe


by Torvald Bringsvor - 11:36 - 1 Oct 2020

Reference

  • Snippet examples
    Hi

    This might be the wrong email list but pointers appreciated...

    Working on a small website project and one requirement is making a page with some airbnb properties. So I was adding the HTML from Airbnb for each one, but it is cumbersome so I wanted to make a snippet where one could edit the description and the property ID. But I have not been able to find a working description of how to create a snippet for the website builder, let alone one that has editable properties like that. An alternative to adding each property as a snippet would be to make a domain object with the info and then display that on a page, but have not come across any easy examples of web views for that either...

    Torvald Baade Bringsvor
    Bringsvor Consulting AS - Consulting and Odoo implementor

    Tel (+47) 4548 2848

    by Torvald Bringsvor - 10:56 - 1 Oct 2020