-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using orm with useService in Odoo 17 #1564
Comments
Hello, the issue is that you're not starting the services so useService cannot possibly work. Try following this guide which I recently wrote: https://www.odoo.com/documentation/master/developer/howtos/standalone_owl_application.html I'm going to close this issue as it is not related to Owl itself but how to use Owl within Odoo. If it is a bug or feature request it should be an issue on the Odoo repo, if it's an issue with using using the code or the tutorial it should be an issue on the documentation repo |
@sdegueldre You were right, I used thanks for your reply Good luck |
Hi @sdegueldre , thanks for your tips. Maybe using startWebClient in @web/start could be a good choice ? |
Could you share your solution ? |
hum, looks like it works for a owl applicaton. |
If you want to be able to use In the website and portal, we already start the services and they can only be started once, so you'll have to reuse that env. I've replied to you on another issue about how to achieve this. |
Hi gays i have question, i need to patch some code to Order class that located in pos/app/store/models |
hi @HamidAbdalla123 , this issue is closed. |
I am developing a small Todo List app on Odoo 17 to learn Owl. Everything was progressing smoothly until I attempted to dynamically fetch and display data using orm with useService. I encountered the following error:
I have extensively tried to resolve the issue by consulting the Owl and Odoo documentation, as well as searching for solutions online, but without success. The code adheres to the documentation, and I am uncertain about the source of this error.
Steps to Reproduce:
odoo 17
)odoo_owl_app
addon/owl-app
route to see the result.Code:
The
root.js
file contains the following codes:When this code
this.orm = useService("orm");
is added to the setup, the following error is issued:Screenshot:
![Screenshot from 2023-12-01 18-58-50](https://private-user-images.githubusercontent.com/42430858/287307928-49b653a0-67c0-4c8f-b254-604262788b9f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1NDEzNzQsIm5iZiI6MTcyMTU0MTA3NCwicGF0aCI6Ii80MjQzMDg1OC8yODczMDc5MjgtNDliNjUzYTAtNjdjMC00YzhmLWIyNTQtNjA0MjYyNzg4YjlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDA1NTExNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1Yzg2YzI5NzJiOTNlMTQyZDNkN2FjM2JjN2ExNTYwZDA3NzhkYTk5ZTQ5OWI4NjAxNjEyMTM3NWYwYWExMjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GrYIjQbECiTNF4UdwzUh2DP5K2m4eF6hTam7_lc-Fxs)
Additional Information:
Projects:
I appreciate any assistance in resolving this issue and gaining a better understanding of using Owl with Odoo.
The text was updated successfully, but these errors were encountered: