I can view all the pos with multicompany, with any user

Bug #1239959 reported by Vanite
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP R&D Addons Team 3

Bug Description

When I create multi-companies and multi-shops, and create pos for those shops in differents companies. In the pos / your sesion, in the select box, I can view all the pos created to all companies with any user.

Vanite (informatica-u)
summary: - i can view all the pos with multicompany, with any user
+ I can view all the pos with multicompany, with any user
description: updated
Vanite (informatica-u)
affects: partner-contact-management → openobject-addons
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Vanite (informatica-u) wrote :

El problema esta en que el POS no esta diseñado para multicompañia.
La solución que he encontrado, es crear una regla en Configuración / Seguridad / Reglas de Registros

En Objeto: Configuración del TPV (pos.config)
Y en Definición de regla (filtro de dominio):
      ['|',('shop_id.company_id','=',False),('shop_id.company_id','child_of',[user.company_id.id])]

o modificar y añadir el campo company_id a la tabla de pos_config y asignarle una compañia y luego aplicarle la regla de:
    ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.