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

Bug #781585 reported by Harmel Delphine (OpenERP)
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

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

Tags: profserv

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
summary: - [PS] Error when typing unsupported character in a recurring model
- (accounting)
+ [PS] Error when typing unsupported character in a recurring model and
+ generating the entries
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Harmel,

Its fixed in lp:~openerp-dev/openobject-addons/trunk-bug-781585-ara branch. It will be merge soon with trunk addons.

Revision ID: <email address hidden>
Revision No: 4696

Thanks,
ara

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello Ashvin,

I have given need fixing on your merge.
Add constraint on reccuring model instead of exception.

So i reopen the bug .

Thanks,
mra

Changed in openobject-addons:
status: Fix Committed → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Harmel,

Its fixed in lp:~openerp-dev/openobject-addons/trunk-bug-781585-ara branch as per suggestion. It will be merge soon with trunk addons.

Revision ID: <email address hidden>
Revision No: 4698

Thanks,
ara

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The corresponding fix has landed in trunk at revision 5040 revid:<email address hidden>
Thanks for reporting!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.