← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

On 07/19/2011 01:47 PM, Cuong wrote:
> 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.

attrs can only be based on fields that are in the view.
Therefore if you need the company currency, add it to the view somehow,
for example with an invisible fields.related, and then use it in your attrs.

PS: Please discuss this further in the Launchpad answers, not in the
bugs. Thanks!

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


References