Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5358 Lượt xem

OpenERP

OpenERP Server Error

Traceback (most recent call last):
  File "/opt/odoo/v8/server/openerp/http.py", line 470, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/v8/server/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/v8/server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/v8/server/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/v8/server/openerp/http.py", line 638, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/v8/server/openerp/http.py", line 337, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/v8/web/addons/web/controllers/main.py", line 1248, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/v8/web/addons/web/controllers/main.py", line 1236, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/v8/server/openerp/addons/base/module/module.py", line 428, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/opt/odoo/v8/server/openerp/addons/base/module/module.py", line 479, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/opt/odoo/v8/server/openerp/modules/registry.py", line 299, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/v8/server/openerp/modules/loading.py", line 343, in load_modules
    loaded_modules, update_module)
  File "/opt/odoo/v8/server/openerp/modules/loading.py", line 247, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/odoo/v8/server/openerp/modules/loading.py", line 155, in load_module_graph
    init_module_models(cr, package.name, models)
  File "/opt/odoo/v8/server/openerp/modules/module.py", line 241, in init_module_models
    obj.init(cr)
  File "/opt/odoo/v8/addons/report/models/report_paperformat.py", line 132, in init
    company.write({'paperformat_id': paperformat_id})
  File "/opt/odoo/v8/server/openerp/osv/orm.py", line 378, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/opt/odoo/v8/server/openerp/addons/base/res/res_company.py", line 287, in write
    return super(res_company, self).write(cr, uid, ids, values, context=context)
  File "/opt/odoo/v8/server/openerp/osv/orm.py", line 4038, in write
    self.pool[model_name]._store_set_values(cr, user, todo, fields_to_recompute, context)
  File "/opt/odoo/v8/server/openerp/osv/orm.py", line 4420, in _store_set_values
    result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
  File "/opt/odoo/v8/server/openerp/osv/fields.py", line 1264, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/opt/odoo/v8/server/openerp/osv/fields.py", line 1339, in _fnct_read
    value = value[field] or False
  File "/opt/odoo/v8/server/openerp/osv/orm.py", line 408, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/opt/odoo/v8/server/openerp/osv/orm.py", line 3347, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/odoo/v8/server/openerp/osv/orm.py", line 3394, in _read_flat
    cr.execute(query, [tuple(sub_ids)] + rule_params)
  File "/opt/odoo/v8/server/openerp/sql_db.py", line 156, in wrapper
    return f(self, *args, **kwargs)
  File "/opt/odoo/v8/server/openerp/sql_db.py", line 221, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column res_partner.vat_subjected does not exist
LINE 1: ...est_followup_level_id",res_partner."picking_warn",res_partne...
                                                             

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Karolin,  the error message indicates that the column vat_subjected, which is introduced by base_vat addons module res.partner, has gone missing.  First, check whether you have base_vat addons module installed or not (if you couldn't get into the UI, check it in the database in table ir_module_module.  If it is installed, then mark it to be 'to upgrade', if it is not, then mark it to be 'to install'.  Then, check the module that you are trying to install whether it list base_vat as a dependency in it's __openerp__.py, it should.

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi John, can u please help with this ?

Karolin, how can I be of any help?

Tác giả

Hi John, can you please send me your email address?

Tác giả Câu trả lời hay nhất

Hi John, 

I could find the VAT Number Validation module through OpenERP UI, it's status was 'to Uninstall' . I select cancel, and then select 'Install' option. But in every state i face with same error! For any module, the error is same!  In Upgrade, Install, Uninstall . For test, i tried to uninstall marketing module, but no chance!

Ảnh đại diện
Huỷ bỏ

Try this: Cancel the Uninstall base_vat, then leave it as it is. Then check from Apply Scheduled Upgrade whether you have other installation/upgrade/uninstallation pending. Try to cancel those first before you do any installation/upgarde/uninstallation again.

Tác giả

New error: OpenERP Server Error Traceback (most recent call last): File "/opt/odoo/v8/server/openerp/http.py", line 470, in dispatch result = self._call_function(**self.params) File "/opt/odoo/v8/server/openerp/http.py", line 294, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/v8/server/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/v8/server/openerp/http.py", line 291, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/v8/server/openerp/http.py", line 638, in __call__ return self.method(*args, **kw) File "/opt/odoo/v8/server/openerp/http.py", line 337, in response_wrap response = f(*args, **kw) File "/opt/odoo/v8/web/addons/web/controllers/main.py", line 1248, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/v8/web/addons/web/controllers/main.py", line 1236, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo/v8/server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 105, in config return self.pool.get('res.config').next(cr, uid, [], context=context) File "/opt/odoo/v8/server/openerp/addons/base/res/res_config.py", line 118, in next return self._next(cr, uid, context=context) File "/opt/odoo/v8/server/openerp/addons/base/res/res_config.py", line 102, in _next res = next.action_launch(context=context) File "/opt/odoo/v8/server/openerp/osv/orm.py", line 378, in function_proxy return attr(self._cr, self._uid, [self._id], *args, **kwargs) File "/opt/odoo/v8/server/openerp/addons/base/ir/ir_actions.py", line 1070, in action_launch res = self.pool[act_type['type']].read(cr, uid, wizard.action_id.id, [], context=context) TypeError: 'bool' object has no attribute '__getitem__'

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
4446
0
thg 5 15
4074
2
thg 1 19
5250
0
thg 3 17
4328
1
thg 12 15
4872