Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
418 Zobrazení

**Odoo Version:** [16.0]

**Installation Method:** [Ubuntu]

**Custom Module:** [Custom Theme]


**Problem Description:**

I updated code in 2-3 modules and added new custom module in my local changes are reflecting in my local host. I pushed code to github and also pushed to server. but changes are not reflecting. when updating on server, i can see list of my updated files but changes are not reflecting on server. Can u please tell me how to solve this 

**Steps I've Taken:**

1. Pushed code to GitHub

2. Pulled code on server

3. Restarted Odoo service

4. Upgraded module


**Expected Result:**

New module should be shown while updating app list and also changed my exsisting files. Nothing is working


**Actual Result:**

Changes are not reflecting

Avatar
Zrušit
Autor

Thank you for detail explanation.

I had followed this steps. My modules is working fine in local. Now problem is changes are not reflecting on Server(live link). I had pushed code to Github. Code is fine. After pulling code to server, updated file names are also reflecting. But code is not getting updated in exsisting files. New module is also not comming after updating app list. Xml file changes are also not reflecting. Please tell how to solve this. I m facing this issue from 4 days and need to sort this urgently.  

Nejlepší odpověď

I understand your problem requirement. I assume you placed the module in the correct addons_path because you updated other modules, too.

The possible options you can look into it:-

  • As you mentioned, your installation method is via Ubuntu

Clear the cache and update the specific module:

# Stop Odoo 

sudo systemctl stop odoo 

# Update specific module with cache clear 

sudo -u path_to/odoo-bin -d your_database_name -u module_name --stop-after-init 

# Start Odoo 

sudo systemctl start odoo

Else for new modules (first installation):

# Stop Odoo 

sudo systemctl stop odoo 

# Install new module 

sudo -u path_to/odoo-bin -d your_database_name -i module_name --stop-after-init 

# Start Odoo 

sudo systemctl start odoo

And one more thing, update apps list

sudo -u odoo /opt/odoo/odoo-bin -c /etc/odoo/odoo.conf --update-apps-list --stop-after-init

sudo -u odoo /usr/bin/odoo --addons-path=path_to/odoo/addons,/path/to/your/custom/addons --update-apps-list --stop-after-init

  • Maybe you should check if it has a security file, just check for one time for new modules which are not inherit anything.
  • Check the module manifest

Ensure __manifest__.py has correct syntax

Verify 'installable': True is set

I hope this will help you.

Avatar
Zrušit