[IMP] point_of_sale: add constraint on company
authorMartin Trigaux <mat@odoo.com>
Fri, 17 Oct 2014 12:22:13 +0000 (14:22 +0200)
committerMartin Trigaux <mat@odoo.com>
Fri, 17 Oct 2014 15:21:30 +0000 (17:21 +0200)
commita6343387d756f53e3538992601e0680eded0caa3
treee27484a93779ddc50e2976b4daa8e816e38b7ae2
parent088f9e5b12e1b120d91246b5546ccaa1513e5cd5
[IMP] point_of_sale: add constraint on company

Using a payment method belonging to another company will raise errors when closing the session.
To avoid being stuck at session closing, forbid to create a POS using a journal of another company.
addons/point_of_sale/point_of_sale.py