NameError creating invoices

Bug #396577 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE OpenObject Client
Invalid
Undecided
Unassigned

Bug Description

requests to "correct red fields"
I think I comes from the VAT m2m in invoice_lines

Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/Koo/Model/KooModel.py", line 376, in data
    model = self.record( index.row(), index.internalPointer() )
  File "/usr/lib64/python2.5/site-packages/Koo/Model/KooModel.py", line 615, in record
    return group.modelByIndex( row )
  File "/usr/lib64/python2.5/site-packages/Koo/Model/Group.py", line 450, in modelByIndex
    self.ensureModelLoaded(record)
  File "/usr/lib64/python2.5/site-packages/Koo/Model/Group.py", line 535, in ensureModelLoaded
    self.recordById(id).set(v, signal=False)
  File "/usr/lib64/python2.5/site-packages/Koo/Model/Record.py", line 348, in set
    self.group.fieldObjects[fieldname].set(self, value, modified=modified)
  File "/usr/lib64/python2.5/site-packages/Koo/Model/Field.py", line 247, in set
    group = RecordGroup(resource=self.attrs['relation'], fields={}, parent=record, context=self.context(record, False))
  File "/usr/lib64/python2.5/site-packages/Koo/Model/Field.py", line 64, in context
    field_context = record.evaluateExpression('dict(%s)' % field_context_str, check_load=check_load)
  File "/usr/lib64/python2.5/site-packages/Koo/Model/Record.py", line 393, in evaluateExpression
    val = Rpc.session.evaluateExpression(dom, d)
  File "/usr/lib64/python2.5/site-packages/Koo/Rpc/Rpc.py", line 506, in evaluateExpression
    return eval(expression, context)
  File "<string>", line 1, in <module>
NameError: name 'parent' is not defined

Revision history for this message
Ferdinand (office-chricar) wrote :

forgot to copy these lines

NO MODEL SET FOR WIDGET: account_id
NO MODEL SET FOR WIDGET: payment_ids
NO MODEL SET FOR WIDGET: reconciled
NO MODEL SET FOR WIDGET: residual
NO MODEL SET FOR WIDGET: date_invoice
NO MODEL SET FOR WIDGET: period_id
NO MODEL SET FOR WIDGET: move_id
NO MODEL SET FOR WIDGET: amount_total
NO MODEL SET FOR WIDGET: name
NO MODEL SET FOR WIDGET: price_type
NO MODEL SET FOR WIDGET: comment
NO MODEL SET FOR WIDGET: action_cancel_draft
NO MODEL SET FOR WIDGET: address_contact_id

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Isnt it related to kde?

Changed in openobject-server:
status: New → Incomplete
affects: openobject-server → openobject-client-kde
Changed in openobject-client-kde:
status: Incomplete → New
Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Does this still happen to you? It's working for me,

Changed in openobject-client-kde:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

works for me

Changed in openobject-client-kde:
status: Incomplete → Invalid
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.