← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 720175] Re: [6.0] multicompany - all companies are selectable for users with restricted company access

 

I think it was this

./osv/orm.py:                                     _('Operation
prohibited by access rules, or performed on an already deleted document
(Operation: %s, Document type: %s).')

IMHO these 2 errors should be separated for user friendlyness to clarify things.
* Error - access prohibited
* Error - deleted document

I thing this happens if the current company does not match the company in user preferences.
I would expect:
Error : current selected company does not match company in preferences.

We should think of having a separate error message for each of the OR
conditions.

It needs very high skills to handle unspecified error messages like
this.

hope this helps

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/720175

Title:
  [6.0] multicompany - all companies are selectable for users with
  restricted company access

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  a user has only access rights to one company, but all companies show
  up in all select fields for companies (because no access rul is set
  for res_company)

  I tried to copy the usual
  ['|','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),('company_id.child_ids','child_of',[user.company_id.id])]
  but this gives an error.



References