← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hi,

Today I also found that dynamic domain has issue. In customer payment
form, take an example, there are 3 fields rate, currency_id, company_id.
I want 'rate' invisible if 'currency_id' equals to company currency.

I do like this. This code has no effect in the form. 
===
<field name="rate" attrs="{'invisible': [('currency_id','=',company_id.currency_id)]}">
===

However If I do like this. It does its job (eg. currency_id=24 is VND currency).
===
<field name="rate" attrs="{'invisible': [('currency_id','=',24)]}">
===

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

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