Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1022 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 1022 Bytes

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]