summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2015-12-09 10:33:15 +0100
committerJoren Van Onder <jov@odoo.com>2015-12-09 10:33:15 +0100
commit6e945de681452d6753f58a749352bfbe099bac1d (patch)
tree387e6ac851acdabad73e4c7a78750a432d1ddc58 /addons/web/static/src/js/framework/session_instance.js
parent12d799623cf7ae33ce7eab9770bb8448180de0f0 (diff)
[FIX] point_of_sale: don't error when splitting an order
4b003afd0ab125b0296de8939626ae889ccdab47 made it so that the constructor of an orderline calls set_quantity(). The issue is that this function first asserts that the order is editable. pos_restaurant uses the clone() of orderline when splitting an order, and this method did not set order, leading to an error. This fixes the issue by temporarily cloning the order reference, and then setting it back to null. It's not the cleanest fix, but seeing as how the clone() method is only used in one place this will have to do for now.
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions