Some bugs to save a new rule.

Bug #652281 reported by Ignacio Ibeas (www.acysos.com)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sales Promotions in Open ERP
Fix Released
Undecided
Unassigned

Bug Description

Hello,

When add new rule and save it, don't appers in the tree view. I have checked the database and the rule is save with their conditions and actions.

If you save the rule without coupon send this error:

Environment Information :
System : Linux-2.6.27.48-0.3-default-x86_64-with-SuSE-11.1-x86_64
OS Name : posix
LSB Version: core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 11.1 (x86_64)
Release: 11.1
Codename: n/a
Operating System Release : 2.6.27.48-0.3-default
Operating System Version : #1 SMP 2010-09-20 11:03:26 -0400
Operating System Architecture : 64bit
Operating System Locale : es_ES.UTF8
Python Version : 2.5.4
OpenERP-Client Version : 5.0.14
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/netsvc.py", line 256, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/service/web_services.py", line 577, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/osv/orm.py", line 2229, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/osv/orm.py", line 2378, in _read_flat
    record[f] = res2[record['id']]
KeyError: 6

If I add the coupon number the error continues and I can save more.

Greetings

Revision history for this message
Ignacio Ibeas (www.acysos.com) (ignacio-acysos) wrote :

I forget something, when save a rule without coupon code. Despite of this error, the rule is saved in the database.

Revision history for this message
Hugo Santos (Factorlibre) (hugosantosred) wrote :

Hello,

If I update openerp-server from 5.0.14 to 5.0.15 I can save the promos without this error.

Revision history for this message
Ignacio Ibeas (www.acysos.com) (ignacio-acysos) wrote :

Confirmed. I update and it works. You can close the bug.

Changed in oosalespromotions:
status: New → Fix Released
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.