Skip to Content
Menu
This question has been flagged
3 Replies
5631 Views

Hello,

When I want upgrade my modules with the command :  python odoo-bin -u all -d "MY_DATABASE" --config=/etc/odoo-server.conf

When I want upgrade my modules with the command : 

 python odoo-bin -u all -d "MY_DATABASE" --config=/etc/odoo-server.conf

I have this error : 

2018-05-24 08:33:44,155 3873 ERROR NCS_PROD_BASE_pour_test_new-module odoo.addons.base.ir.ir_cron: Unexpected exception while processing cron job {'function': u'_vacuum_report', 'create_uid': 1, 'a
rgs': u'(24,)', 'create_date': '2018-01-05 10:23:44.147907', 'name': u'Vacuum temporary reports', 'interval_number': 4, 'interval_type': u'hours', 'numbercall': -1, 'nextcall': '2018-05-22 18:23:46
', 'priority': 5, 'doall': False, 'write_date': '2018-01-05 10:23:44.147907', 'active': True, 'user_id': 1, 'model': u'mis.report.instance', 'write_uid': 1, 'id': 20}
Traceback (most recent call last):
  File "/opt/odoo/server/odoo/addons/base/ir/ir_cron.py", line 250, in _process_jobs
    registry[cls._name]._process_job(job_cr, job, lock_cr)
  File "/opt/odoo/server/odoo/addons/base/ir/ir_cron.py", line 156, in _process_job
    now = fields.Datetime.context_timestamp(cron, datetime.now())
  File "/opt/odoo/server/odoo/fields.py", line 1576, in context_timestamp
    tz_name = record._context.get('tz') or record.env.user.tz
  File "/opt/odoo/server/odoo/fields.py", line 915, in __get__
    self.determine_value(record)
  File "/opt/odoo/server/odoo/fields.py", line 1027, in determine_value
    self.compute_value(recs)
  File "/opt/odoo/server/odoo/fields.py", line 981, in compute_value
    self._compute_value(records)
  File "/opt/odoo/server/odoo/fields.py", line 974, in _compute_value
    self.compute(records)
  File "/opt/odoo/server/odoo/fields.py", line 625, in _compute_related
    record[self.name] = value[self.related_field.name]
  File "/opt/odoo/server/odoo/models.py", line 5232, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/opt/odoo/server/odoo/fields.py", line 915, in __get__
    self.determine_value(record)
  File "/opt/odoo/server/odoo/fields.py", line 1017, in determine_value
    record._prefetch_field(self)
  File "/opt/odoo/server/odoo/models.py", line 3073, in _prefetch_field
    result = records.read([f.name for f in fs], load='_classic_write')
  File "/opt/odoo/server/odoo/models.py", line 3017, in read
    self._read_from_database(stored, inherited)
  File "/opt/odoo/extra-addons/odoo_addons/smile_audit/models/models.py", line 30, in _read_from_database
    native_read_from_database(self, field_names, inherited_field_names=[])
  File "/opt/odoo/server/odoo/models.py", line 3141, in _read_from_database
    cr.execute(query_str, params)
  File "/opt/odoo/server/odoo/sql_db.py", line 154, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/server/odoo/sql_db.py", line 231, in execute
    res = self._obj.execute(query, params)
ProgrammingError: ERREUR:  la colonne res_partner.comment_template_id n'existe pas
LINE 1: ...,"res_partner"."sale_warn_msg" as "sale_warn_msg","res_partn...

My file /etc/odoo-server.conf :

[options]
proxy_mode = True
db_maxconn = 64
limit-memory-soft = 5760MB
limit-memory-hard = 6912MB
update = all
xmlrpc = True
xmlrpc_interface = 0.0.0.0
xmlrpc_port = 8069
; This is the password that allows database operations:
admin_passwd = "*****"
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/server/addons,/opt/odoo/emipro-addons,/opt/odoo/extra-addons,/opt/odoo/dev-addons,/opt/odoo/test-addons,/opt/odoo/oca-addons,/opt/odoo/extra-addons/backend_theme,/opt/odoo/oca-addons/server-tools,/opt/odoo/oca-addons/account-financial-reporting,/opt/odoo/oca-addons/account-financial-tools,/opt/odoo/oca-addons/account-fiscal-rule,/opt/odoo/oca-addons/account-invoice-reporting,/opt/odoo/oca-addons/account-invoicing,/opt/odoo/oca-addons/bank-payment,/opt/odoo/oca-addons/bank-statement-reconcile,/opt/odoo/oca-addons/community-data-files,/opt/odoo/oca-addons/connector-telephony,/opt/odoo/oca-addons/contract,/opt/odoo/oca-addons/crm,/opt/odoo/oca-addons/e-commerce,/opt/odoo/oca-addons/knowledge,/opt/odoo/oca-addons/l10n-france,/opt/odoo/oca-addons/manufacture,/opt/odoo/oca-addons/multi-company,/opt/odoo/oca-addons/operating-unit,/opt/odoo/oca-addons/partner-contact,/opt/odoo/oca-addons/product-attribute,/opt/odoo/oca-addons/project,/opt/odoo/oca-addons/reporting-engine,/opt/odoo/oca-addons/rma,/opt/odoo/oca-addons/sale-workflow,/opt/odoo/oca-addons/server-tools,/opt/odoo/oca-addons/social,/opt/odoo/oca-addons/stock-logistics-warehouse,/opt/odoo/oca-addons/stock-logistics-workflow,/opt/odoo/oca-addons/survey,/opt/odoo/oca-addons/web,/opt/odoo/oca-addons/website,/opt/odoo/oca-addons/product-variant,/opt/odoo/oca-addons/purchase-workflow,/opt/odoo/oca-addons/account-closing,/opt/odoo/oca-addons/account-payment,/opt/odoo/oca-addons/purchase-workflow,/opt/odoo/oca-addons/business-requirement,/opt/odoo/extra-addons/access-addons,/opt/odoo/extra-addons/mail-addons,/opt/odoo/extra-addons/misc-addons,/opt/odoo/extra-addons/Odoo10,/opt/odoo/extra-addons/odoo-apps,/opt/odoo/extra-addons/PRISME-ODOO,/opt/odoo/extra-addons/website-addons,/opt/odoo/oca-addons/intrastat,/opt/odoo/oca-addons/bank-statement-import,/opt/odoo/extra-addons/tko-addons,/opt/odoo/extra-addons/odoo_addons,/opt/odoo/extra-addons/niboo-community,/opt/odoo/oca-addons/mis-builder,/opt/odoo/extra-addons/odoo_apps_public/,/opt/odoo/oca-addons/sale-reporting,/opt/odoo/oca-addons/hr-timesheet,/opt/odoo/oca-addons/commission,/opt/odoo/oca-addons/stock-logistics-barcode,/opt/odoo/extra-addons/Auneor-apps,/opt/odoo/extra-addons/addons-konos,/opt/odoo/extra-addons/purchase_subscription,/opt/odoo/extra-addons/muk_dms,/opt/odoo/extra-addons/odoo-mooncard-connector,/opt/odoo/extra-addons/odoo-usability,/opt/odoo/extra-addons/picking_create_invoice,/opt/odoo/extra-addons/one2many_mass_select_delete,/opt/odoo/extra-addons/stock_force_date,/opt/odoo/oca-addons/hr,/opt/odoo/extra-addons/noviat-apps
logfile = /var/log/odoo/odoo-server.log
load="web, mail_tracking, web_kanban, dbfilter_from_header"
log-level=debug
limit_time_cpu = 60
limit_time_real = 120

Maybe I miss something but tell me you need more information. I'm learning odoo.

Thank you
Regards,
Clement
Avatar
Discard
Author Best Answer

Thank you for your answer.

I droped smilte_audit and did again

 ./odoo-bin -u all -d MY_DATABASE --addons=/opt/odoo/server/addons,/opt/odoo/extra-addons

So now I have this error ...

2018-05-24 14:22:07,456 28701 DATABASE odoo.addons.base.ir.ir_cron: Unexpected exception while processing cron job {'function': u'_fetch_mails', 'create_uid': 1, 'args': u'()', 'create_date': '2017-05-1
0 15:32:23.650244', 'name': u'Fetchmail Service', 'interval_number': 5, 'interval_type': u'minutes', 'numbercall': -1, 'nextcall': '2018-05-24 13:27:23', 'priority': 5, 'doall': False, 'write_date': '2017-05-16
10:02:34.532867', 'active': True, 'user_id': 1, 'model': u'fetchmail.server', 'write_uid': 1, 'id': 4}
Traceback (most recent call last):
  File "/opt/odoo/server/odoo/addons/base/ir/ir_cron.py", line 250, in _process_jobs
    registry[cls._name]._process_job(job_cr, job, lock_cr)
  File "/opt/odoo/server/odoo/addons/base/ir/ir_cron.py", line 156, in _process_job
    now = fields.Datetime.context_timestamp(cron, datetime.now())
  File "/opt/odoo/server/odoo/fields.py", line 1576, in context_timestamp
    tz_name = record._context.get('tz') or record.env.user.tz
  File "/opt/odoo/server/odoo/fields.py", line 915, in __get__
    self.determine_value(record)
  File "/opt/odoo/server/odoo/fields.py", line 1027, in determine_value
    self.compute_value(recs)
  File "/opt/odoo/server/odoo/fields.py", line 981, in compute_value
    self._compute_value(records)
  File "/opt/odoo/server/odoo/fields.py", line 974, in _compute_value
    self.compute(records)
  File "/opt/odoo/server/odoo/fields.py", line 625, in _compute_related
    record[self.name] = value[self.related_field.name]
  File "/opt/odoo/server/odoo/models.py", line 5232, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/opt/odoo/server/odoo/fields.py", line 915, in __get__
    self.determine_value(record)
  File "/opt/odoo/server/odoo/fields.py", line 1017, in determine_value
    record._prefetch_field(self)
  File "/opt/odoo/server/odoo/models.py", line 3073, in _prefetch_field
    result = records.read([f.name for f in fs], load='_classic_write')
  File "/opt/odoo/server/odoo/models.py", line 3017, in read
    self._read_from_database(stored, inherited)
  File "/opt/odoo/server/odoo/models.py", line 3141, in _read_from_database
    cr.execute(query_str, params)
  File "/opt/odoo/server/odoo/sql_db.py", line 154, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/server/odoo/sql_db.py", line 231, in execute
    res = self._obj.execute(query, params)
ProgrammingError: ERREUR:  la colonne res_partner.comment_template_id n'existe pas
LINE 1: ..." as "sale_warn_msg","res_partner"."zip" as "zip","res_partn...

Have you an idea ?

Regards,

Clement


Avatar
Discard
Best Answer

Dear Mutz

Try This command


 
 ./odoo-bin -u all -d MY_DATABASE --addons=/opt/odoo/server/addons,/opt/odoo/extra-addons

I Hope I helped You

Avatar
Discard
Best Answer

You have deployed a faulty module, most probably "smile_audit". Please read the error message and correct it.

By the way it is not necessary to specify the path to each module separately in the .conf file.

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 18
2943
2
Feb 18
5709
1
Nov 24
18021
2
Oct 23
3960
1
Sep 23
1209