[FIX] point_of_sale: validate and closing pos sessoin handle multi company
authorDenis Ledoux <dle@openerp.com>
Thu, 6 Feb 2014 16:34:44 +0000 (17:34 +0100)
committerDenis Ledoux <dle@openerp.com>
Thu, 6 Feb 2014 16:34:44 +0000 (17:34 +0100)
commit4818a83f2693f23aa66b7b2f8b5714bb15d14482
tree73bda6e3ba24aabbf056827cf65b3bc0bb602739
parent610010876b7f630759436125c00657bad3caaba6
[FIX] point_of_sale: validate and closing pos sessoin handle multi company

When the user who validated and closed the pos session was not the same user who created the session, and if this user was not in the same company, it wasnt possible to validate and close the pos session.

This explanation if also valid if the user who created the pos session changed of company in his preferences between the creation and the validation.

bzr revid: dle@openerp.com-20140206163444-ckcmurcwk2vhi5vp
addons/account_voucher/account_voucher.py
addons/point_of_sale/point_of_sale.py