← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 781585] Re: [PS] Error when typing unsupported character in a recurring model and generating the entries

 

** Changed in: openobject-addons
       Status: Confirmed => In Progress

-- 
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/781585

Title:
  [PS] Error when typing unsupported character in a recurring model and
  generating the entries

Status in OpenERP Modules (addons):
  In Progress

Bug description:
  trunk, revno 3401

  * Accounting/Configuration/Miscellaneous/Recurring Models, define a
  recurring model with name "%year". Then click on "created entries"

  Obtained result : I get the following error :

  
  Environment Information : 
  System : Linux-2.6.32-31-generic-i686-with-Ubuntu-10.04-lucid
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 10.04.2 LTS
  Release:	10.04
  Codename:	lucid
  Operating System Release : 2.6.32-31-generic
  Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:24:35 UTC 2011
  Operating System Architecture : 32bit
  Operating System Locale : fr_BE.UTF8
  Python Version : 2.6.5
  OpenERP-Client Version : 6.1-dev
  Last revision No. & ID :1888 launchpad_translations_on_behalf_of_openerp-20110512043447-hhsojq69uot963ci
  Traceback (most recent call last):
    File "/home/openerp/trunk/server/openerp/netsvc.py", line 410, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/openerp/trunk/server/openerp/service/web_services.py", line 598, in dispatch
      res = fn(db, uid, *params)
    File "/home/openerp/trunk/server/openerp/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/openerp/trunk/server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/openerp/trunk/server/openerp/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/openerp/trunk/server/openerp/addons/account/wizard/account_use_model.py", line 66, in create_entries
      entry['name'] = model.name%{'year':time.strftime('%Y'), 'month':time.strftime('%m'), 'date':time.strftime('%d')}
  ValueError: unsupported format character 'y' (0x79) at index 1

  Expected result : the system provides a warning message

  reported by dha, OpenERP Prof. Serv


References