← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 803486] Re: option 'parent' can't be recognized when using widget="selection"!

 

Hi Olivier,

I understand your explanation.

To my comment #5, could you help me how to do my need? I want to show
'rate' field only if user selects currency different from company
currency.

Thank you very much,

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

Title:
  option 'parent' can't be recognized when using widget="selection"!

Status in OpenERP Server:
  Invalid

Bug description:
  Hi,

  I think this is a bug.

  In view definition of voucher_payment_receipt_form of module account_voucher, I wonder 'parent'  in the code below, how openerp server can understand what parent means? I understand the meaning of this definition, but does not know how to implement this in other views. I tried but openerp reports 
  "NameError: name 'parent' is not defined"

  ===
  domain="[
     ('account_id.type','in',('receivable','payable')), 
     ('reconcile_id','=', False), 
     ('partner_id','=',parent.partner_id)
  ]"
  ===

  Thanks,

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/803486/+subscriptions


Follow ups

References