Hi all,
I created several companies , each one has its own warehouse, own shop and own POS.
If I connect to POS as "admin" (company_id = 1), orders are ok. no problem.
But if I login OpenERP as another user (with rights), orders are not sent to OpenERP.
I investigated, and saw that orders are created by py function create_from_ui() (point_of_sale.py - line 490). this function calls create() at line 663.
Again, create() tries to retrieve POS sequence :
values['name'] = self.pool.get('ir.sequence').get(cr, uid, 'pos.order')
But there is only one sequence recorded for company_id = 1, so the function returns "False".
In fact there should be one sequence pos.order for each company, and one sequence pos.orderline for each company too.
I fixed this by duplicating sequences for each company. All works fine now (Thanks to Julius)
My question :
Why OpenERP does note create these sequences when creating a new POS ?
Is there something special to do ?
Regards