← Back to team overview

openerp-dev-web team mailing list archive

Re: lp:~openerp-dev/openobject-client-web/6.0-opw-5029-4852-sma into lp:openobject-client-web/6.0

 

> Yes. In description, you indicate:
> 
> > 1) Create of new invoice, select a supplier (e.g. ASUStek), Fill in a
> Total value (e.g. 100.00)
> 
> > 2) Add an invoice line. The invoice line shows a "Unit Price" of 100.00
> 
> I took that precision as saying "the unit price should not be 100 (why would
> it be)" and the GTK client has a base unit price of 0. And when I checked the
> unit price was 100 in web client (sorry, not 500, 500 was just my test case).
> 
> Am I mistaken? Was the proposal only about the errors? (I just checked, the
> OPWs only talk about context not passed in so guessing yes now)

:( No, this merge proposal is not for this.

While performing the above steps, so this time on console
logging display a bunch of error messages :

expr_eval Error while parsing u"dict({'check_total': check_total,
'invoice_line': invoice_line, 'address_invoice_id': address_invoice_id,
'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type
or False})"

Traceback (most recent call last):

  File
"/usr/lib/python2.5/site-packages/openerp_web-6.0.1-py2.5.egg/addons/openerp
/utils/tools.py", line 50, in expr_eval

    temp = eval(string, context)

  File "<string>", line 1, in <module>

NameError: name 'invoice_line' is not defined

  File
"/usr/lib/python2.5/site-packages/openerp_web-6.0.1-py2.5.egg/addons/openerp
/utils/tools.py", line 50, in expr_eval

    temp = eval(string, context)

  File "<string>", line 1, in <module>

NameError: name 'check_total' is not defined

[06/Apr/2011:18:00:07] expr_eval Error while parsing u"{'type':parent.type}"
Traceback (most recent call last):
  File "/home/sananaz/workspace/stable_6.0_source/web-6.0/addons/openerp/utils/tools.py", line 50, in expr_eval
    value = eval(string, context)
  File "<string>", line 1, in <module>
NameError: name 'parent' is not defined

-->> Other side GTK client gives only this error message:

ERROR:tools.expr_eval:{'type':parent.type}
Traceback (most recent call last):
  File "/home/sananaz/workspace/stable_6.0_source/client-6.0/bin/tools/__init__.py", line 52, in expr_eval
    temp = eval(string, context)
  File "<string>", line 1, in <module>
NameError: name 'parent' is not defined


So the reason of console errors are not passed context with the proper values, So I solved this problem. Please see the background error messages without this merge. 

-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-5029-4852-sma/+merge/56563
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client-web/6.0-opw-5029-4852-sma.


References