تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

How to uninstall / upgrade a module when web page is not accessible

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
moduleuninstallupgrade
6 الردود
30460 أدوات العرض
الصورة الرمزية
Kibong Moon

I installed a custom module which turned out to have error in xml file. I stopped server and fixed the error. But I cannot access any page after server restart.

It seems that the server still has the problematic module. I need to upgrade the module first. But I cannot access upgrade menu.

Is there a way to upgrade or uninstall a module outside the web?

Regards,

Kibong

2
الصورة الرمزية
إهمال
الصورة الرمزية
Stephen Mack
أفضل إجابة

You can update a module using the command line.

Upgrade would be: odoo.py -d <database> -u <module> -c <config file>

There is no command line option to delete a module

4
الصورة الرمزية
إهمال
Bole

For uninstall module via terminal you can always do: psql - database -c "update ir_module_module set state='uninstalled' where name='module' ;" ... true not realy using orm but that is commandline way to quickly "uninstall" module.. it will not remove any data, just mark the module uninstalled...

iWesabe Technologies

+1

الصورة الرمزية
Ivan
أفضل إجابة

This is not supposed to be the "proper" way, but this is what I use if the database I am using for developement has been foobared.  Use psql (or PgAdmin III) to access the database, open the ir_module_module table, then change the value of the state field of the module you want to change.  The values are: 'uninstalled', 'to install', 'installed', 'to upgrade', 'to remove'.

You must be very careful so that it does not make the database more foobared:

  • never make modules that are 'uninstalled' to be 'installed' or 'to upgrade'.  Always make it 'to install' so that it is installed properly during the next refresh.
  • never make 'installed' module to be 'uninstalled'.  Always try to go through 'to remove' state first so that it is uninstalled properly
  • never delete any record.  Do it from the UI once it is up.
3
الصورة الرمزية
إهمال
Setiawan

What do you mean by next refresh? How do we refresh the db? Restarting server?

الصورة الرمزية
Alberto Rubio
أفضل إجابة

You can update modules when web page is not accesible with a psql command.
 

sudo su postgres
psql -d database_name
UPDATE ir_module_module SET state = 'to upgrade' where name = 'module_name';


0
الصورة الرمزية
إهمال
الصورة الرمزية
Kibong Moon
الكاتب أفضل إجابة

Dear Stephen & Ivan,

Thank you!

Pardon me that I couldn't leave comment right below your answers due to shortage of karma.

Regards,

Kibong

0
الصورة الرمزية
إهمال
الصورة الرمزية
Devendra Kavthekar
أفضل إجابة

There are some manual ways but have a look at my pull request:

https://github.com/odoo/odoo/pull/12373

(If a patch link can help: https://patch-diff.githubusercontent.com/raw/odoo/odoo/pull/12373.patch)

And my stackoverflow answer:

http://stackoverflow.com/questions/21485630/how-to-uninstall-manually-openerp-module#answer-41760541

The pull request has been there for a long time but they dont have time. ;)

A Video of how it is helpful:

    https://www.youtube.com/watch?v=7jtmDM0wfFQ

0
الصورة الرمزية
إهمال
الصورة الرمزية
Dale
أفضل إجابة

Thanks for the above advice


I have tried the command above but I get the error CRITICAL <database> openerp.service.server: Failed to initialize the database. What else can I try?


Below is the error:



odoo@ubuntu:~/addons/website_report$ /opt/odoo/odoo.py -d MMC_Live -u website_report -c /etc/odoo-server.conf

ERROR: couldn't create the logfile directory. Logging to the standard output.

2015-07-14 12:39:49,424 1995 INFO ? openerp: OpenERP version 8.0

2015-07-14 12:39:49,425 1995 INFO ? openerp: addons paths: ['/opt/odoo/.local/share/Odoo/addons/8.0', u'/opt/odoo/addons', '/opt/odoo/openerp/addons']

2015-07-14 12:39:49,425 1995 INFO ? openerp: database hostname: localhost

2015-07-14 12:39:49,425 1995 INFO ? openerp: database port: 5432

2015-07-14 12:39:49,425 1995 INFO ? openerp: database user: odoo

2015-07-14 12:39:49,641 1995 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

2015-07-14 12:39:49,663 1995 INFO MMC_Live openerp.modules.loading: loading 1 modules...

2015-07-14 12:39:49,902 1995 INFO MMC_Live openerp.modules.loading: 1 modules loaded in 0.24s, 0 queries

2015-07-14 12:39:52,791 1995 CRITICAL MMC_Live openerp.service.server: Failed to initialize database `MMC_Live`.

Traceback (most recent call last):

File "/opt/odoo/openerp/service/server.py", line 909, in preload_registries

registry = RegistryManager.new(dbname, update_module=update_module)

File "/opt/odoo/openerp/modules/registry.py", line 366, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/odoo/openerp/modules/loading.py", line 326, in load_modules

modobj.button_upgrade(cr, SUPERUSER_ID, ids)

File "/opt/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/module/module.py", line 542, in button_upgrade

self.update_list(cr, uid)

File "/opt/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/module/module.py", line 654, in update_list

handler.load_addons()

File "/opt/odoo/openerp/http.py", line 1298, in load_addons

m = __import__('openerp.addons.' + module)

File "/opt/odoo/openerp/modules/module.py", line 80, in load_module

mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)

File "/opt/odoo/.local/share/Odoo/addons/8.0/auto_backup/__init__.py", line 23, in <module>

import backup_scheduler

File "/opt/odoo/.local/share/Odoo/addons/8.0/auto_backup/backup_scheduler.py", line 33, in <module>

raise ImportError('This module needs pysftp to automaticly write backups to the FTP through SFTP. Please install pysftp on your system. (sudo pip install pysftp)')

ImportError: This module needs pysftp to automaticly write backups to the FTP through SFTP. Please install pysftp on your system. (sudo pip install pysftp)

^C2015-07-14 12:40:01,877 1995 INFO MMC_Live openerp.service.server: Initiating shutdown

2015-07-14 12:40:01,877 1995 INFO MMC_Live openerp.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

0
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
Uninstall module programatically using boolean تم الحل
module uninstall
الصورة الرمزية
الصورة الرمزية
1
نوفمبر 19
5790
Uninstall Module where the source code is not there anymore تم الحل
module uninstall
الصورة الرمزية
1
مارس 16
5731
Custom field gets removed on module upgrade? [SOLVED] تم الحل
module upgrade
الصورة الرمزية
الصورة الرمزية
1
مارس 15
6216
Can't uninstall module
module uninstall
الصورة الرمزية
الصورة الرمزية
1
مارس 15
9057
base_partner_merge_automatic__base_partner_merge_automatic_fkey تم الحل
module upgrade v14
الصورة الرمزية
1
نوفمبر 22
2524
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now