Code Monkey home page Code Monkey logo

odoo-ls's Introduction

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

odoo-ls's People

Contributors

delvsola avatar fda-odoo avatar livaios avatar louciole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odoo-ls's Issues

Not visible in VSCode marketplace

Good day.

I do not see this extension in the VS Code marketplace. I do have the latest VS Code version.
Has this not been published yet?

Thank you in advance

Extension created an infinite log that after a few hours of being open exceeded 100+gb

Your setup
Version: v0.2.2
Operating System: Linux Mint 21.2 "Victoria"
IDE and/or Integration tool (for example: Vscode - official extension):
vs code

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
Steps to reproduce the behavior:
I had to tool open on a project for a few hours, in the background it was creating an infinite log, when I noticied it was 100+gb
Expected behavior
A clear and concise description of what you expected to happen.
Dont take up 100gb on my system

Screenshots
If applicable, add screenshots to help explain your problem.

How to configure for Odoo running inside a container

Your setup
Version: 16.0
Operating System: MacOs (Running Odoo in docker using official image)
IDE and/or Integration tool (for example: Vscode - official extension): Vscode

Describe the bug
Not really bug, more a question. Cannot get the extension to detect odoo installation because it is inside the container.
I tried copying the Odoo folder (/usr/lib/python3/dist-packages/odoo/) from the container to my host, but extensions is not picking it up as a valid installation path.

How can I setup the extension so that it uses the python and odoo running in my container?

Thank you in advance

Dynamic Configuration

It would be nice to have only one configuration and just provide a relative path to a directory which contains addons directories instead of having to select every addons directory one by one and creating a new config for every project.

[vscode] 'ClassSymbol' object has no attribute 'get_module_symbol'

Your setup
Version: 14.0
Operating System: Ubuntu
IDE and/or Integration tool:

  • Vscode - official extension

Describe the bug
When loading the configuration, it crashes complaining about 'ClassSymbol' object has no attribute 'get_module_symbol'.

Additional context

  • I'm running it in a VSCode connected to a remote server using the official extension Remote SSH.

Logs before crash:

[INFO] Starting the extension.
[Trace - 4:19:06 PM] Sending request 'initialize - (0)'.
[Trace - 4:19:07 PM] Received response 'initialize - (0)' in 921ms.
[Trace - 4:19:07 PM] Sending notification 'initialized'.
[Trace - 4:19:07 PM] Sending notification 'Odoo/clientReady'.
[Trace - 4:19:07 PM] Sending notification 'textDocument/didOpen'.
[Trace - 4:19:07 PM] Sending notification 'textDocument/didOpen'.
[Trace - 4:19:07 PM] Received request 'client/registerCapability - (bd395843-5a5e-48a1-b392-79c96d900822)'.
[Trace - 4:19:07 PM] Sending response 'client/registerCapability - (bd395843-5a5e-48a1-b392-79c96d900822)'. Processing request took 0ms
[Trace - 4:19:07 PM] Received notification 'window/logMessage'.
Building new Odoo knowledge database
[Trace - 4:19:07 PM] Received request 'Odoo/getConfiguration - (ad1682bc-cced-48e4-b51a-502978ba8334)'.
[Trace - 4:19:07 PM] Sending response 'Odoo/getConfiguration - (ad1682bc-cced-48e4-b51a-502978ba8334)'. Processing request took 0ms
[Trace - 4:19:07 PM] Received request 'workspace/configuration - (7d4df00d-e7ac-46dc-a6f3-f106ed425374)'.
[Trace - 4:19:07 PM] Sending response 'workspace/configuration - (7d4df00d-e7ac-46dc-a6f3-f106ed425374)'. Processing request took 0ms
[Trace - 4:19:08 PM] Received notification 'Odoo/loadingStatusUpdate'.
[Trace - 4:19:09 PM] Received notification 'window/logMessage'.
Odoo version: 14.0.0
Missing addon paths : ["/opt/odoo_modules/test"]
[Trace - 4:19:24 PM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 4:19:24 PM] Received notification 'Odoo/displayCrashNotification'.
[Trace - 4:19:24 PM] Received notification 'window/logMessage'.

Traceback:

Traceback (most recent call last):
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/core/odoo.py", line 156, in initialize
    Odoo.instance.build_database(ls, odooConfig)
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/core/odoo.py", line 200, in build_database
    if not self.build_base(ls, used_config):
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/core/odoo.py", line 230, in build_base
    self.process_rebuilds(ls)
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/core/odoo.py", line 359, in process_rebuilds
    validation.validate()
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/features/validation/python_validator.py", line 54, in validate
    self.validate_structure()
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/features/validation/python_validator.py", line 313, in validate_structure
    inherited_models = model.get_main_symbols(self.currentModule)
  File "/home/odoo/.vscode-server/extensions/odoo.odoo-0.2.1/server/core/model.py", line 22, in get_main_symbols
    if not from_module or not sym.get_module_symbol() or \
AttributeError: 'ClassSymbol' object has no attribute 'get_module_symbol'
 

Missing path of custom configuration file

It would be better if developers could use their own config files. You know, in the configuration file, we've set up the database name, addon paths, etc. If I input the path of the custom configuration file, the addons paths of the extensions will automatically be detected, and the input will be fantastic, you know.

It can't be used in vscode

Enterprise version of odoo16

He can't recognize the addons directory.

My project directory is like this

image

The enterprise version downloaded from the official website, the latest version of ODOO vscode, still cannot recognize the native addons directory

Your setup
Version:0.2.4
Operating System: mac m2
IDE and/or Integration tool (for example: Vscode - official extension): vscode

Describe the bug
A clear and concise description of what the bug is.
The enterprise version downloaded from the official website, the latest version of ODOO vscode, still cannot recognize the native addons directory

To Reproduce
Steps to reproduce the behavior:
To support the enterprise version downloaded from the official website
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.
image

Odoo-ls not killed automatically when I kill VS Code

Your setup
Version: 0.2.1 &0.2.2
Operating System: Ubuntu 22.04 and i3 desktop manager
IDE and/or Integration tool (for example: Vscode - official extension): Vscode - official extension

Describe the bug
When I kill VS Code (Ctrl+q) the extension process is not killed automatically, annoying when I am working on multiples instances of VS code and each odoo-ls server is taking 1.8Go of RAM memory

To Reproduce
Steps to reproduce the behavior:*
Kill VS Code with Ctrl+q and check in the monitor that the instances of odoo-ls is still here

Expected behavior
A clear and concise description of what you expected to happen.
It should be killed at the same time as VS Code ?

Directory structure not compatible

if os.path.exists(os.path.join(self.odooPath, "addons")):

This is only compatible with the 'git' directory structure of odoo ... it is incompatible with for example the nightly source builds where there is only one addons directory (where also 'base' existst among the others) and not an 'addons' and an 'odoo/addons' directory.

At least should be compatible with Odoo own directory structures ...

The Odoo configuration selected does not match the odoo path in the workspace. Would you like to change it?

Describe the bug
The problem appears to be happening because the workspace path in the VS Explorer is different then the odoo folder path of the extension, however this could be a problem for a lot of people as it's a good practice to have the custom addons folder and the odoo.conf file out of the odoo project folder

To Reproduce
I think it would be better if the extension ignores the different between the odoo folder path and the workspace.

The Message error
1

The Odoo Extension configuration
2

**The Odoo project workspace **
3

Thanks

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.