Git Product home page Git Product logo

Comments (6)

sdegueldre avatar sdegueldre commented on August 30, 2024 1

@chrisb-c01 I've written a page in the Odoo docs to explain how to create a standalone application, let me know what you think: https://www.odoo.com/documentation/master/developer/howtos/standalone_owl_application.html

from owl.

sdegueldre avatar sdegueldre commented on August 30, 2024

Hm, looks like the services are already started because you're using the assets frontend. If you're trying to write a controller that renders an owl application you should use a custom assets bundle. That or you should use a public component instead of mounting the application yourself, you can search for <owl-component in the Odoo code base.

Although again, this has nothing to do with owl itself, please submit issues with Odoo on the odoo repo or the documentation repo if you believe that it's just poorly documented.

from owl.

chrisb-c01 avatar chrisb-c01 commented on August 30, 2024

@sdegueldre that is brilliant and will definitely help a lot of people. In Section 2 it is mentioned that services should be started, however the example code does not display this. Is that correct?

from owl.

sdegueldre avatar sdegueldre commented on August 30, 2024

I realized mid-way that it was error-prone to do the application setup by hand every time, so I extracted the logic into the mountComponent function and merged that in parallel. Good catch, I'll submit a revision to the documentation page. Long story short, if you're using mountComponent you won't need to start the services or create the env by hand.

from owl.

chrisb-c01 avatar chrisb-c01 commented on August 30, 2024

@sdegueldre you're the man! Should make all our lives easier :-) Is this also available in 16.0 or would we need to explicitly init the services still?

from owl.

sdegueldre avatar sdegueldre commented on August 30, 2024

You'd need to start the services by hand in 16.0, basically what the util is doing now. Since 17.0 is super fresh it wasn't a very risky change but the tradeoff isn't as straightforward for an older stable version

from owl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.