Thank you sir. Could you support me with the following problem: I caught a warning with launch.json file at the line "debugOptions": [ "RedirectOutput" ] It said that Property debugOptions is not allowed.
Update launch.json Configuration: The launch.json file is where you define configurations for debugging. Since debugOptions is not recognized, you likely need to adjust your configuration to match the current schema expected by Visual Studio Code. Here's a basic structure of what your launch.json might look like for a Python project (Odoo is typically a Python-based application): json Copy code { "version": "0.2.0", "configurations": [ { "name": "Python: Odoo", "type": "python", "request": "launch", "program": "${workspaceFolder}/odoo-bin", // Adjust the path to your Odoo executable "console": "integratedTerminal", "args": [ "--config", "path/to/your/odoo.conf", // Specify Odoo configuration file if needed // Other Odoo specific arguments can go here ] // You can add other necessary configurations here } ] } In this configuration: "program" should point to your Odoo executable (odoo-bin). "args" can include any command-line arguments you typically use to start Odoo, like specifying a configuration file. Remove the debugOptions Property: Since the debugOptions property is causing the issue and is not recognized, you should remove it from your configuration. Modern versions of the Python extension for Visual Studio Code and the debugger itself have incorporated many features directly, making some of the older options unnecessary.
Hai Kai Gao, Well in that file thats just the name, so it does'nt metter , by the way that was my bad not to change into Odoo 15. thanks for pointing out. cheers
Ensure the Python extension is installed and enabled in VS Code, se Ctrl+Shift+P and type Reload Window to reload VS Code. if its not working then Manually create a .vscode folder in your project directory, add a launch.json file, and paste the configuration above.
Thank You, but I have one question please: the proble0m of "Database creation error: FATAL: password authentication failed for user "openpg"" which appears in 10:43 (when your computer shows the time on 00:59) and you solved it (when the time is 01:59 on your computer) because I face this problem! Can you give me the solution please?
my odoo.conf file is too short and there is no file like that & after run the there is an error like that AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
hi, you update your conf file with the conf file i have uploaded in details. you donload that file and copy everything from there and paste it in your conf file. i will work. thanks
Hi, Are u using a docker composer? If yes then The issue can be solved by adding this argument to the command line when starting the database container : -e POSTGRES_DB=postgres
sorry for late reply, i was out of country. ok you can click on launch.json file and replace the content with this file gofile.me/6PEI8/H3YeVn7TH. first donload this file and then copy all from this downloaded file and paste it in your vcode launch.json file. thanks
your-online-live-version-address/web/database/manager, go in database manager and then click on your database and then click backup, this is how you take a backup of your database and then extract files and copy filestore folder and dump file and then paste it in your local running copy's folder and then reset database by typing this command in your terminal (./reset.sh)
@@odooistic thank you so much for your response, so i have the ability to export an odoo cloud database to a file edit it and then reset it on cloud with " ./reset.sh" ? is this completly free or i should have some odoo sh subscription ? Thank you so much sir
I think your didn't show everything on your video. 1. After run app you stopped your video & again resume it with skipping the error 2. when you connect with database that also your skipped
Nawaf can you please send some details why this error is coming because this kind of error indicates that an error has occurred during a connection to the server and that the requested page cannot be accessed. send me some pictures that when it occurs, I will reply then
Hello sir , when i press on "create a launch.json file" , nothing happen. I mean it doesn't create ".vscode" folder and "launch.json" file. Can you help me ?
Hi, when you follow the complte process, automatically json file will be presend in vscode folder, you just need to replace the contents with the file i mentioned to download with. If somehow you are not getting that , just copy downloaded file into that vscode folder.
@@solomonmuwori1954 hello , i'm sorry i didn't receive the notification. At the end, i was looking to far it was just my bad with the tree of folders, it was a problem due of a file/folder in the wrong folder thank you :)
Very informative and impressive,
What a way of sum up , clear step by step easy to understand
thanks sajjad
Thank you sir. Could you support me with the following problem:
I caught a warning with launch.json file at the line
"debugOptions": [
"RedirectOutput"
]
It said that Property debugOptions is not allowed.
Update launch.json Configuration:
The launch.json file is where you define configurations for debugging. Since debugOptions is not recognized, you likely need to adjust your configuration to match the current schema expected by Visual Studio Code.
Here's a basic structure of what your launch.json might look like for a Python project (Odoo is typically a Python-based application):
json
Copy code
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Odoo",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/odoo-bin", // Adjust the path to your Odoo executable
"console": "integratedTerminal",
"args": [
"--config", "path/to/your/odoo.conf", // Specify Odoo configuration file if needed
// Other Odoo specific arguments can go here
]
// You can add other necessary configurations here
}
]
}
In this configuration:
"program" should point to your Odoo executable (odoo-bin).
"args" can include any command-line arguments you typically use to start Odoo, like specifying a configuration file.
Remove the debugOptions Property:
Since the debugOptions property is causing the issue and is not recognized, you should remove it from your configuration. Modern versions of the Python extension for Visual Studio Code and the debugger itself have incorporated many features directly, making some of the older options unnecessary.
@@odooistic Thanks for your support !!
great help . thank for the vide . anyone who not able to create the launch.json , just run vscode as administartor
great
Excellent and to the point detailed descriptions. Very nice support thank you so much. God bless you
Thanks so much
Thanks this worked as expected
how did you add the configurations in launch.json, it doesn't work with me!!
Glad it helped
This video is very interesting about odoo
thx
Very nice video
Thanks
Thank you sir. But why it's oddo-14 in the config file rather than 15? Are they compatible?
Hai Kai Gao, Well in that file thats just the name, so it does'nt metter , by the way that was my bad not to change into Odoo 15. thanks for pointing out. cheers
thanks. so, i can make or add new modules right?
ofcourse you are ready sir 😀
Thanks so much. Managed to follow through.
perfect
Thanks more , does it for any version : 14,13?
14 and 15 definitely work👍
@@odooistic مشكور
Launch.json file not opening when i click add configuration
Ensure the Python extension is installed and enabled in VS Code, se Ctrl+Shift+P and type Reload Window to reload VS Code. if its not working then Manually create a .vscode folder in your project directory, add a launch.json file, and paste the configuration above.
Great 10/10.
Thanks Nawaf
Thank You, but I have one question please: the proble0m of "Database creation error: FATAL: password authentication failed for user "openpg"" which appears in 10:43 (when your computer shows the time on 00:59) and you solved it (when the time is 01:59 on your computer) because I face this problem! Can you give me the solution please?
me too
yes i got an error and it was because of wrong configuration file content, so i did that process again and it resolved.
@@odooistic How did you resolve that??
Did the error get resolved?
my odoo.conf file is too short and there is no file like that & after run the
there is an error like that AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
hi, you update your conf file with the conf file i have uploaded in details. you donload that file and copy everything from there and paste it in your conf file. i will work. thanks
Sorry to Inform you mate, but the config File link does not work, may be dead.
so sorry, our cloud storage got some issues, but i believe its fixed now. thanks for letting me know.
Hello sir ,when I paste in the json file I get an error that says "Property debugOptions is not allowed."
i would say restart vscode and try doing it again and check if you have got permission to override in that. cheers
sorry how can i fix this error Property debugOptions is not allowed.
it looks like it's coz of launch.json file, I will recommend to replace with a new one again and completely restart system
Database (odoo15) not initialized, you can force it with `-i base` ? im getting this error ? can you help me !
module 'lib' has no attribute
Hi, Are u using a docker composer? If yes then The issue can be solved by adding this argument to the command line when starting the database container :
-e POSTGRES_DB=postgres
Otherwise i would suggest remove odoo and Postgres both and then install odoo with Postgres installation altogether and follow the instructions
when I click add configuration its doesn't appear any file to replace code
sorry for late reply, i was out of country. ok you can click on launch.json file and replace the content with this file gofile.me/6PEI8/H3YeVn7TH. first donload this file and then copy all from this downloaded file and paste it in your vcode launch.json file. thanks
bro i wanted to configure it with github repo download not with executable file.
how to do that?
you can do so by just download your repo and then configure its launch.json file
can you please tell me how can i export my database from online version to local and edit it with vscode ?
sorry for late reply , I was away for some days.
your-online-live-version-address/web/database/manager, go in database manager and then click on your database and then click backup, this is how you take a backup of your database and then extract files and copy filestore folder and dump file and then paste it in your local running copy's folder and then reset database by typing this command in your terminal (./reset.sh)
@@odooistic thank you so much for your response, so i have the ability to export an odoo cloud database to a file edit it and then reset it on cloud with " ./reset.sh" ? is this completly free or i should have some odoo sh subscription ?
Thank you so much sir
I think your didn't show everything on your video.
1. After run app you stopped your video & again resume it with skipping the error
2. when you connect with database that also your skipped
hi, Mushfiqur i am looking into this and will come up with a new video. thanks
configuration file shows that unable to download files can you give another drive link where i can download it
so sorry, my virtual drive link got some error. I have fixed it now and you can download it. thanks
i am getting error here : FATAL: password authentication failed for user "openpg" please help
try this
$su postgres
$psql
*alter user openpg with password admin;
and go to odoo config file and write (db_password = admin
@@odooistic i am using windows but that issue is resolved but now i m getting error for models cant see my models
@@jatinkant1711 you need to give your custom addons path in odoo.conf file
@@jatinkant1711 you need to place your module in a folder and that folder path you need to pass in odoo.conf. cheers
Sir keep getting internal server error 500
Nawaf can you please send some details why this error is coming because this kind of error indicates that an error has occurred during a connection to the server and that the requested page cannot be accessed. send me some pictures that when it occurs, I will reply then
have you replace this VisualStudio Code Configuration File: gofile.me/6PEI8/H3YeVn7TH file with the existing launch.json file?
I have tried but when I run configuration, a new tab doesn't appear, instead it's stacked in the account account tag py
Have you download and replace launch.json file with the downloaded file's content? if not , you do that and it will work fine. thanks
@@odooistic Min, it still doesn't work even though the file has been downloaded vs code
@@wisya4104 Had the issue. Got it to work after opening VS Code from Anaconda Navigator
Hello sir , when i press on "create a launch.json file" , nothing happen. I mean it doesn't create ".vscode" folder and "launch.json" file. Can you help me ?
Hi, when you follow the complte process, automatically json file will be presend in vscode folder, you just need to replace the contents with the file i mentioned to download with. If somehow you are not getting that , just copy downloaded file into that vscode folder.
@ HDest. I Had the issue. Got it to work after opening VS Code from Anaconda Navigator
@@solomonmuwori1954 Really glad to hear that. fantastic
@@solomonmuwori1954 hello , i'm sorry i didn't receive the notification. At the end, i was looking to far it was just my bad with the tree of folders, it was a problem due of a file/folder in the wrong folder thank you :)
@@odooistic i've sent you an email because i meet some problems with a report system did you saw it ?