Giter VIP home page Giter VIP logo

Comments (8)

legalsylvain avatar legalsylvain commented on September 28, 2024

Hi @JulienMartinez. thanks for reporting. could you copy paste the python error log ?
thanks !

from pos.

JulienMartinez avatar JulienMartinez commented on September 28, 2024

Hi @legalsylvain here is the python error ,

regards .

Erreur:
Odoo Server Error

Traceback (most recent call last):
  File "/home/odoo_14/server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/home/odoo_14/server/odoo/http.py", line 685, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo_14/server/odoo/http.py", line 361, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo_14/server/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo_14/server/odoo/http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo_14/server/odoo/http.py", line 908, in __call__
    return self.method(*args, **kw)
  File "/home/odoo_14/server/odoo/http.py", line 533, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo_14/server/addons/web/controllers/main.py", line 1376, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/home/odoo_14/server/addons/web/controllers/main.py", line 1364, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo_14/server/odoo/api.py", line 399, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/odoo_14/server/odoo/api.py", line 386, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/odoo_14/additionnal_repositories/OCA-pos/pos_customer_required/models/pos_make_payment.py", line 29, in check
    return super(PosMakePayment, self).check()
  File "/home/odoo_14/server/addons/point_of_sale/wizard/pos_payment.py", line 59, in check
    order._create_order_picking()
  File "/home/odoo_14/additionnal_repositories/OCA-pos/pos_order_return/models/pos_order.py", line 141, in _create_order_picking
    res = wizard.create_returns()
  File "/home/odoo_14/server/addons/stock/wizard/stock_picking_return.py", line 175, in create_returns
    new_picking_id, pick_type_id = wizard._create_returns()
  File "/home/odoo_14/server/addons/delivery/models/stock_picking.py", line 312, in _create_returns
    new_picking, pick_type_id = super(StockReturnPicking, self)._create_returns()
  File "/home/odoo_14/server/addons/stock_account/wizard/stock_picking_return.py", line 18, in _create_returns
    new_picking_id, pick_type_id = super(StockReturnPicking, self)._create_returns()
  File "/home/odoo_14/server/addons/stock/wizard/stock_picking_return.py", line 120, in _create_returns
    new_picking = self.picking_id.copy({
  File "/home/odoo_14/server/odoo/models.py", line 4691, in copy
    self.ensure_one()
  File "/home/odoo_14/server/odoo/models.py", line 5028, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/odoo_14/server/odoo/http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo_14/server/odoo/http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: Expected singleton: stock.picking()

from pos.

legalsylvain avatar legalsylvain commented on September 28, 2024

Hi. Did you tried to cherry picked that V12 patch ?
#481

if it works, could you make a PR ?

than,ks !

from pos.

DorianMAG avatar DorianMAG commented on September 28, 2024

Hi @JulienMartinez , @legalsylvain .

I was able to reproduce the problem on the runboat .

Regards

from pos.

flotho avatar flotho commented on September 28, 2024

Hi @JulienMartinez @DorianMAG , could you please propose a PR if it's working ?
Regards

from pos.

anmarmo1 avatar anmarmo1 commented on September 28, 2024

The error is reproduced in runboat if the "real time" checkbox in the "Inventory management" section is activated, otherwise it works correctly

image

from pos.

chienandalu avatar chienandalu commented on September 28, 2024

This is addressed here #981

from pos.

zamberjo avatar zamberjo commented on September 28, 2024

This issue is resolved, it can be closed.

from pos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.