translate.py : inspect.stack() problem

Bug #417010 reported by Christian Draux - reseaucerta.org
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Christophe Simonis (OpenERP)

Bug Description

Hi,
openerp 5.02 in all-in-one, base terp with demo data and profil manufacturing and account chart "France". Fiscal year defined.
Add sale account, purchase account, sale tax, purchase tax on product PC1.
A user, member of group salesman, with salesman's rule create a sale order to Axelor.
He chooses PC1 on line order. Result :
Environment Information :
System : Windows-XP-5.1.2600
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : fr_FR.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 240, in dispatch
  File "netsvc.pyo", line 73, in __call__
  File "service\web_services.pyo", line 583, in execute
  File "osv\osv.pyo", line 59, in wrapper
  File "osv\osv.pyo", line 119, in execute
  File "osv\osv.pyo", line 111, in execute_cr
  File "osv\orm.pyo", line 2048, in read
  File "tools\misc.pyo", line 680, in cached_result
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base\ir\ir_model.py", line 357, in check
  File "tools\translate.pyo", line 130, in __call__
AttributeError: 'tuple' object has no attribute 'get'

The same operation with admin user has no problem.
Thank's in advance
Christian Draux

Changed in openobject-server:
status: New → Confirmed
summary: - add product in sale order crashes the client
+ translate.py : inspect.stack() problem
Changed in openobject-server:
assignee: nobody → Christophe (OpenERP) (kangol)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Christian,

I just had checked with OpenERP 5.0.6 version and the problem does not appear anymore.
I doubt on the record rules set by you too.

Kindly provide more information(the flow you follow, rules, access rights,groups for non-admin users) for this bug and reopen if you
still face the issue.

Thanks.

Changed in openobject-server:
status: Confirmed → Fix Released
Revision history for this message
Christian Draux - reseaucerta.org (christian-draux-deactivatedaccount) wrote : Re: [Bug 417010] Re: translate.py : inspect.stack() problem

Hi Jay,
You are right in 5.0.6, no problem for a salesman to sale product.
The only problem concern the tax, a salesman has no right on account.tax
and the sale order create by a salesman has no tax.
Thank's
Christian Draux

Jay (Open ERP) a écrit :
> Hello Christian,
>
> I just had checked with OpenERP 5.0.6 version and the problem does not appear anymore.
> I doubt on the record rules set by you too.
>
> Kindly provide more information(the flow you follow, rules, access rights,groups for non-admin users) for this bug and reopen if you
> still face the issue.
>
> Thanks.
>
> ** Changed in: openobject-server
> Status: Confirmed => Fix Released
>

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hi Christian,

It could be due to the access rights or group of Finance/User missing on Salesman.

Thanks.

Revision history for this message
Christian Draux - reseaucerta.org (christian-draux-deactivatedaccount) wrote :

Jay (Open ERP) a écrit :
> Hi Christian,
>
> It could be due to the access rights or group of Finance/User missing on
> Salesman.

This group doesn't exist in 5.0.6, but the group Finance / Accountant is
right for me.
Thank's
Christian

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.