← Back to team overview

openerp-india team mailing list archive

[Bug 978611] [NEW] Journal Items Error In Chinese language

 

Public bug reported:

Client Traceback (most recent call last):
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 180, in dispatch
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 1161, in load
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 1043, in fields_view_get
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 611, in send


Server Traceback (most recent call last):
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 592, in send
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\netsvc.py", line 360, in dispatch_rpc
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\service\web_services.py", line 572, in dispatch
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 167, in execute_kw
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 121, in wrapper
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 176, in execute
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 164, in execute_cr
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\account\account_move_line.py", line 967, in fields_view_get
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 2149, in fields_view_get
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 1789, in __view_look_dom_arch
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 1695, in __view_look_dom
  File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\account\account_move_line.py", line 930, in view_header_get
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\sql_db.py", line 152, in wrapper
  File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\sql_db.py", line 212, in execute
DataError: 錯誤:  無效的 integer 輸入語法: "04/2012"
LINE 1: SELECT code FROM account_period WHERE id = '04/2012'
                                                                                                       ^

error code:
account_move_line.py,line200

            if type(period_id) == str :
                ids = period_obj.search(cr, uid, [('name', 'ilike', period_id)])
                context.update({
                    'period_id': ids[0]
                })


update:

            if type(period_id) == str or type(period_id) == unicode:
                ids = period_obj.search(cr, uid, [('name', 'ilike', period_id)])
                context.update({
                    'period_id': ids[0]
                })

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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/978611

Title:
  Journal Items Error In Chinese language

Status in OpenERP Addons (modules):
  New

Bug description:
  Client Traceback (most recent call last):
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 180, in dispatch
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 1161, in load
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 1043, in fields_view_get
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 611, in send

  
  Server Traceback (most recent call last):
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 592, in send
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\netsvc.py", line 360, in dispatch_rpc
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\service\web_services.py", line 572, in dispatch
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 167, in execute_kw
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 121, in wrapper
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 176, in execute
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 164, in execute_cr
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\account\account_move_line.py", line 967, in fields_view_get
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 2149, in fields_view_get
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 1789, in __view_look_dom_arch
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 1695, in __view_look_dom
    File "C:\Program Files\OpenERP 6.1-1\server\openerp\addons\account\account_move_line.py", line 930, in view_header_get
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\sql_db.py", line 152, in wrapper
    File "C:\Program Files\OpenERP 6.1-1\server\.\openerp\sql_db.py", line 212, in execute
  DataError: 錯誤:  無效的 integer 輸入語法: "04/2012"
  LINE 1: SELECT code FROM account_period WHERE id = '04/2012'
                                                                                                         ^

  error code:
  account_move_line.py,line200

              if type(period_id) == str :
                  ids = period_obj.search(cr, uid, [('name', 'ilike', period_id)])
                  context.update({
                      'period_id': ids[0]
                  })

  
  update:

              if type(period_id) == str or type(period_id) == unicode:
                  ids = period_obj.search(cr, uid, [('name', 'ilike', period_id)])
                  context.update({
                      'period_id': ids[0]
                  })

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/978611/+subscriptions


Follow ups

References