Skip to Content
Menu
This question has been flagged
1833 Views

Hi all!


When trying to update the sale_stock module, I got this error!

any help?


Regards





Erreur:

Odoo Server Error


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 624, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/home/odoo/src/odoo/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/home/odoo/src/odoo/odoo/http.py", line 669, in dispatch

    result = self._call_function(**self.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/home/odoo/src/odoo/odoo/http.py", line 339, in checked_call

    result = self.endpoint(*a, **kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 915, in __call__

    return self.method(*args, **kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1326, in call_button

    action = self._call_kw(model, method, args, kwargs)

  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1314, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 387, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 374, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "<decorator-gen-66>", line 2, in button_immediate_upgrade

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log

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

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 634, in button_immediate_upgrade

    return self._button_immediate_function(type(self).button_upgrade)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function

    modules.registry.Registry.new(self._cr.dbname, update_module=True)

  File "/home/odoo/src/odoo/odoo/modules/registry.py", line 86, in new

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

  File "/home/odoo/src/odoo/odoo/modules/loading.py", line 515, in load_modules

    registry.init_models(cr, list(models_to_check), {'models_to_check': True})

  File "/home/odoo/src/odoo/odoo/modules/registry.py", line 370, in init_models

    model.init()

  File "/home/odoo/src/odoo/addons/sale/report/sale_report.py", line 147, in init

    self.env.cr.execute("""CREATE or REPLACE VIEW %s as (%s)""" % (self._table, self._query()))

  File "/home/odoo/src/user/sale_report_margin/reports/sale_report.py", line 26, in _query

    from_clause=from_clause,

  File "/home/odoo/src/enterprise/website_sale_dashboard/models/sale_report.py", line 35, in _query

    return super(SaleReport, self)._query(with_clause, fields, groupby, from_clause)

  File "/home/odoo/src/odoo/addons/sale_margin/report/sale_report.py", line 14, in _query

    return super(SaleReport, self)._query(with_clause, fields, groupby, from_clause)

TypeError: _query() takes 1 positional argument but 5 were given

Avatar
Discard
Related Posts Replies Views Activity
2
Feb 24
339
5
Dec 23
43407
2
Sep 21
3896
0
Mar 15
2606
2
Mar 23
10080