c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23119
[Bug 774754] [NEW] [6.0.2 bzr rev 4548] Account Invoice Layout AccessError on line type=title
Public bug reported:
addon account_invoice_layout
bzr revision 4548
no changes in account_invoice_layout since 4548
reproduce (in web-client and GTK)
1. create customer invoice
2. add a new invoice layout line type=title
3. invoice lines still empty
4. check pgsql db table: account_invoice_line, filter by invoice_id=<created invoice id>
5. field "account_id" of that invoice line is a account which belongs to the top account of another company
6. open that invoice in gtk client and get this error window:
AccessError
Operation prohibited by access rules, or performed on an already deleted
document (Operation: read, Document type: Account).
Debug Log:
DEBUG:web-services:AccessError
Traceback (most recent call last):
File "/opt/openerp/development/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/development/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/development/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/development/server/bin/osv/orm.py", line 2941, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/opt/openerp/development/server/bin/osv/orm.py", line 3061, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/opt/openerp/development/server/bin/osv/fields.py", line 793, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/opt/openerp/development/server/bin/addons/account_invoice_layout/account_invoice_layout.py", line 137, in _fnct
account_names = dict(self.pool.get('account.account').name_get(cr, uid, account_ids, context=context))
File "/opt/openerp/development/server/bin/addons/account/account.py", line 472, in name_get
reads = self.read(cr, uid, ids, ['name', 'code'], context=context)
File "/opt/openerp/development/server/bin/osv/orm.py", line 2941, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/opt/openerp/development/server/bin/osv/orm.py", line 2998, 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: Account).')
[2011-05-01 11:43:19,171][winsoft_dev] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
File "/opt/openerp/development/server/bin/service/netrpc_server.py", line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/opt/openerp/development/server/bin/netsvc.py", line 499, in dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
7. manually change the account_id of that account_invoice_line to the correct top account of the current company
8. open invoice in web-client or gtk client works without error
This also happens, if you duplicate an existing invoice with invoice
line type=title... invoice lines of the new duplicated invoice are
hidden/empty...
Have also checked addon sale_layout, if this also happens there.. and
not.. there all seems be as it should.. i think, cause a SO doesn't care
about a account until it will be transformed to a invoice...
thanks for fixing that issue
thomi
** Affects: openobject-addons
Importance: Undecided
Status: New
** Tags: account invoice layout line type
** Summary changed:
- [6.0.2 bzr rev ] Account Invoice Layout AccessError on line type=title
+ [6.0.2 bzr rev 4548] Account Invoice Layout AccessError on line type=title
--
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/774754
Title:
[6.0.2 bzr rev 4548] Account Invoice Layout AccessError on line
type=title
Status in OpenERP Modules (addons):
New
Bug description:
addon account_invoice_layout
bzr revision 4548
no changes in account_invoice_layout since 4548
reproduce (in web-client and GTK)
1. create customer invoice
2. add a new invoice layout line type=title
3. invoice lines still empty
4. check pgsql db table: account_invoice_line, filter by invoice_id=<created invoice id>
5. field "account_id" of that invoice line is a account which belongs to the top account of another company
6. open that invoice in gtk client and get this error window:
AccessError
Operation prohibited by access rules, or performed on an already
deleted document (Operation: read, Document type: Account).
Debug Log:
DEBUG:web-services:AccessError
Traceback (most recent call last):
File "/opt/openerp/development/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/development/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/development/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/development/server/bin/osv/orm.py", line 2941, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/opt/openerp/development/server/bin/osv/orm.py", line 3061, in _read_flat
res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
File "/opt/openerp/development/server/bin/osv/fields.py", line 793, in get
res = self._fnct(obj, cr, user, ids, name, self._arg, context)
File "/opt/openerp/development/server/bin/addons/account_invoice_layout/account_invoice_layout.py", line 137, in _fnct
account_names = dict(self.pool.get('account.account').name_get(cr, uid, account_ids, context=context))
File "/opt/openerp/development/server/bin/addons/account/account.py", line 472, in name_get
reads = self.read(cr, uid, ids, ['name', 'code'], context=context)
File "/opt/openerp/development/server/bin/osv/orm.py", line 2941, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/opt/openerp/development/server/bin/osv/orm.py", line 2998, 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: Account).')
[2011-05-01 11:43:19,171][winsoft_dev] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
File "/opt/openerp/development/server/bin/service/netrpc_server.py", line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/opt/openerp/development/server/bin/netsvc.py", line 499, in dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
7. manually change the account_id of that account_invoice_line to the correct top account of the current company
8. open invoice in web-client or gtk client works without error
This also happens, if you duplicate an existing invoice with invoice
line type=title... invoice lines of the new duplicated invoice are
hidden/empty...
Have also checked addon sale_layout, if this also happens there.. and
not.. there all seems be as it should.. i think, cause a SO doesn't
care about a account until it will be transformed to a invoice...
thanks for fixing that issue
thomi
Follow ups
References