← Back to team overview

openerp-india team mailing list archive

[Bug 1210263] Re: Permissions users multicompany

 

Somesh,
You can't reproduce this error. Right?

We generate a MP with test-yaml of a similar situation.
https://code.launchpad.net/~vauxoo/openobject-addons/7.0-project_task_test_yaml_multi-company

And generate a runbot instance:
http://runbot.openerp.com/vauxoo-test-yaml-task-multi-company-test-jorge-vauxoo-18987/logs/test-all.txt

This is the log
2013-09-02 18:22:15,805 32438 INFO test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.modules.loading: module project: loading test/task_multicompany.yml
2013-09-02 18:22:15,824 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Test 1, Assigned task to User A with User Multi-Company
2013-09-02 18:22:15,824 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Create a company 'TestA'
2013-09-02 18:22:15,925 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Create a company 'TestB'
2013-09-02 18:22:16,040 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Create a user 'UserAB'
2013-09-02 18:22:16,283 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Create a user 'UserA'
2013-09-02 18:22:16,485 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Added companies to UserAB
2013-09-02 18:22:16,541 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Added companies to UserA
2013-09-02 18:22:16,619 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Create task assigned to UserA by UserAB with company A
2013-09-02 18:22:16,794 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Read task UserA
2013-09-02 18:22:16,816 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Changed companyA to companyB in UserAB
2013-09-02 18:22:16,846 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Read task UserA
2013-09-02 18:22:16,868 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Test 2, Assigned task to User Multi-Company with User A
2013-09-02 18:22:16,868 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Assigned companyA in UserAB
2013-09-02 18:22:16,898 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Create task assigned to UserAB with company A create by UserA
2013-09-02 18:22:17,075 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Changed companyA to companyB in UserAB
2013-09-02 18:22:17,105 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Task assigned to UserAB with company B create by UserA
2013-09-02 18:22:17,280 32438 TEST test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: Read task UserAB with companyB
2013-09-02 18:22:17,299 32438 ERROR test-yaml-task-multi-company-test-jorge-vauxoo-18987-all openerp.tools.yaml_import: AssertionError in Python code : Wrong. UserAB with company B can not read this task

FYI This runbot instance use a branch with fix of bug:
https://bugs.launchpad.net/openobject-server/+bug/1073087

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1210263

Title:
  Permissions users multicompany

Status in OpenERP Addons (modules):
  New

Bug description:
  1) Steps to reproduce the issue you have observed

  You can create 2 sister companies (companyA, companyB), and 2 users
  (user1 and user2),

  The user1 have the companyA, and user2 have companyA and companyB.

  The user1 add as follower in a purchase_order to user2, and when the
  user2 have at present the companyA can view the purchase, but if the
  user2 change you company to companyB, this already can't view the
  purchase, by permissions.

  Can find a demonstrative video here::
  http://www.youtube.com/watch?v=Obf7Ca_4vOU

  
  2) The result you expected:

  As the user2 is multicompany, i find that with the two company he can
  view the documents

  3)  I use Ubuntu 12.4

  OpenERP -.-
  Server revno: ---- 5045
  addons revno: ---- 9335
  web addons revno: ---- 4005

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1210263/+subscriptions


References