[IMP] point_of_sale: prevent multicompany configuration issues
authorMartin Trigaux <mat@openerp.com>
Tue, 26 Aug 2014 12:21:59 +0000 (14:21 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 26 Aug 2014 14:15:22 +0000 (16:15 +0200)
commitf6dceb2ef6e17202ce47b637c7e83ed2402e3d4b
treed06641ce53208b3e6430ee845ca766c3ba49a2ce
parent720ddf86ee656cc7c4aefca4ef6fde263269eb31
[IMP] point_of_sale: prevent multicompany configuration issues

If the pos.config is not properly configured for multicompany (e.g. using location belonging to another company), launching a session with this config may fail (access rights).
This prevents to configure an incorrect point of sale in the first place.
addons/point_of_sale/point_of_sale.py