Skip to content

Webpack configuration file to resolve imports in Odoo's JavaScript files.

Notifications You must be signed in to change notification settings

racielperdomo1993/odoo-resolve-js-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Odoo resolve javascript imports

Webpack configuration file to resolve odoo javascript imports.

Pycharm guide

  • In Pycharm, go to "File/Settings/Languages and Frameworks/Javascript/Webpack" (use the search tool) and select the Manually option, and set the webpack.config.js file.

Img01

  • Go to "File/Settings/Project/Project Structure", select the option Add Content Root and set the Odoo source folder with the option Mark as Sources.
  • If you use a Docker-compose interpreter Pycharm already map remote folders inside a local folder.

Img02

Troubleshooting

Sometimes, PyCharm doesn't refresh changes immediately. You can try adding an alias manually, for example:

alias: {
  "@web": "/path/to/odoo/addons/web/src",
}

When resolve this import, change to the original code and check again.

alias: alias,

Img03

Finally

If you know a better way for resolving Odoo javascript imports, please contact me [email protected]

About

Webpack configuration file to resolve imports in Odoo's JavaScript files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published