← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 772367] [NEW] Child users cannot access their company information/logo in reports

 

Public bug reported:

How to reproduce it:
fresh database with purchases and dependencies and demo data
Link 2 companies, Shop1 being child of OpenERP SA 
main company for demo user = shop1 and allowed companies = shop1

When user print a PO, there is an access error. User cannot print the
logo and information company in the header of the purchase order even
with default multi-company rules and in its own company.

[2011-04-28 21:32:45,074][test] WARNING:report:rml_except: " company.logo or removeParentNode('image') "
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/utils.py", line 90, in _child_get
    eval(n.get('rml_except'), {}, self.localcontext)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/safe_eval.py", line 284, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 292, in __getattr__
    return self[name]
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 205, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2940, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2997, in _read_flat
    % (self._description,))
except_orm: (u'AccessError', u'Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Company).')

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/772367

Title:
  Child users cannot access their company information/logo in reports

Status in OpenERP Modules (addons):
  New

Bug description:
  How to reproduce it:
  fresh database with purchases and dependencies and demo data
  Link 2 companies, Shop1 being child of OpenERP SA 
  main company for demo user = shop1 and allowed companies = shop1

  When user print a PO, there is an access error. User cannot print the
  logo and information company in the header of the purchase order even
  with default multi-company rules and in its own company.

  [2011-04-28 21:32:45,074][test] WARNING:report:rml_except: " company.logo or removeParentNode('image') "
  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/utils.py", line 90, in _child_get
      eval(n.get('rml_except'), {}, self.localcontext)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/safe_eval.py", line 284, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 292, in __getattr__
      return self[name]
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 205, in __getitem__
      field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2940, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2997, in _read_flat
      % (self._description,))
  except_orm: (u'AccessError', u'Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Company).')


Follow ups

References