← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695710] [NEW] Batch update one2many fails on PO lines

 

Public bug reported:

Hi!
Latest from bzr.
Trying to open the one2many batch update dialog I get this traceback:

Traceback (most recent call last):
  File "Koo/Fields/OneToMany/OneToMany.py", line 241, in batchUpdate
    dialog.setup( [], [] )
  File "Koo/Dialogs/BatchUpdateDialog.py", line 111, in setup
    self.screen.new()
  File "Koo/Screen/Screen.py", line 622, in new
    record = self.group.create( default, self.newRecordPosition(), self.group.domain(), ctx )
  File "Koo/Model/Group.py", line 368, in create
    record.fillWithDefaults(domain, ctx)
  File "Koo/Model/Record.py", line 286, in fillWithDefaults
    self.setDefaults(val)
  File "Koo/Model/Record.py", line 355, in setDefaults
    self.group.fieldObjects[fieldname].setDefault(self, value)
  File "Koo/Model/Field.py", line 122, in setDefault
    record.callOnChange(self.attrs['on_change'])
  File "Koo/Model/Record.py", line 508, in callOnChange
    args = [self.evaluateExpression(arg) for arg in arg_names]
  File "Koo/Model/Record.py", line 445, in evaluateExpression
    val = self.evaluateExpression( dom, checkLoad, firstTry=False )
  File "Koo/Model/Record.py", line 447, in evaluateExpression
    raise exception
NameError: name 'parent' is not defined

** Affects: openobject-client-kde
     Importance: Undecided
         Status: New

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

Title:
  Batch update one2many fails on PO lines

Status in Qt/KDE OpenObject Client:
  New

Bug description:
  Hi!
Latest from bzr.
Trying to open the one2many batch update dialog I get this traceback:

Traceback (most recent call last):
  File "Koo/Fields/OneToMany/OneToMany.py", line 241, in batchUpdate
    dialog.setup( [], [] )
  File "Koo/Dialogs/BatchUpdateDialog.py", line 111, in setup
    self.screen.new()
  File "Koo/Screen/Screen.py", line 622, in new
    record = self.group.create( default, self.newRecordPosition(), self.group.domain(), ctx )
  File "Koo/Model/Group.py", line 368, in create
    record.fillWithDefaults(domain, ctx)
  File "Koo/Model/Record.py", line 286, in fillWithDefaults
    self.setDefaults(val)
  File "Koo/Model/Record.py", line 355, in setDefaults
    self.group.fieldObjects[fieldname].setDefault(self, value)
  File "Koo/Model/Field.py", line 122, in setDefault
    record.callOnChange(self.attrs['on_change'])
  File "Koo/Model/Record.py", line 508, in callOnChange
    args = [self.evaluateExpression(arg) for arg in arg_names]
  File "Koo/Model/Record.py", line 445, in evaluateExpression
    val = self.evaluateExpression( dom, checkLoad, firstTry=False )
  File "Koo/Model/Record.py", line 447, in evaluateExpression
    raise exception
NameError: name 'parent' is not defined





Follow ups

References