Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Companies).

Bug #1200972 reported by Réal Carbonneau
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

openerp-6.1-20130712-233403

When printing any report in a child company, the error occurs.
The parent company has an address and logo.

-If the link to the parent company is removed, printing works again.
-In version openerp-6.1-20130318-004602 printing work correctly even if there is a parent company, so a regression occurred since this version.

The error does not seem to occurs in a new demo database.

2013-07-13 15:27:11,324 696 ERROR ? openerp.service.web_services: Exception: (u'AccessError', u'Operation prohibited by access rules, or performed on an alrea$
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/service/web_services.py", line 727, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/opt/openerp/server/openerp/report/report_sxw.py", line 440, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/opt/openerp/server/openerp/report/report_sxw.py", line 509, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/opt/openerp/server/openerp/report/report_sxw.py", line 521, in create_single_pdf
    rml_parser = self.parser(cr, uid, self.name2, context=context)
  File "/opt/openerp/server/openerp/addons/sale/report/sale_order.py", line 28, in __init__
    super(order, self).__init__(cr, uid, name, context=context)
  File "/opt/openerp/server/openerp/report/report_sxw.py", line 176, in __init__
    self.setCompany(user.company_id)
  File "/opt/openerp/server/openerp/report/report_sxw.py", line 199, in setCompany
    self.localcontext['logo'] = company_id.logo
  File "/opt/openerp/server/openerp/osv/orm.py", line 476, in __getattr__
    return self[name]
  File "/opt/openerp/server/openerp/osv/orm.py", line 391, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/opt/openerp/server/openerp/osv/orm.py", line 391, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/opt/openerp/server/openerp/osv/orm.py", line 3416, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/opt/openerp/server/openerp/osv/orm.py", line 3473, in _read_flat
    % (self._description, query))
except_orm: (u'AccessError', u'Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Companies).
2013-07-13 15:27:11,514 696 ERROR ? openerp.netsvc: AccessError
Operation prohibited by access rules, or performed on an already deleted document (Operation: read, Document type: Companies).

Revision history for this message
LIN Yu (lin-yu) wrote :

I have the same error as this one.
But the solution of bug #772357, <email address hidden>, does not solve this.

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.