xml - How do I access sub-components of a list field in OpenERP 7? -


if go details page product , click on "procurements" tab, you'll see list label "suppliers".

looking @ xml page, field can see in location "seller_ids". however, list shows "delivery lead time" , "minimal quantity".

are these fields somehow contained within "seller_ids", array?

i can't find other views add other fields. add "product name" , "product code" list.

i believe of fields in "product.supplierinfo" model. how go this?

if @ product.product model see seller_ids one2many field.

when openerp encounters this, looks @ model o2m field represents , retrieve tree view , display fields seeing coming tree view seller model (product.supplierinfo memory). behind scenes, openerp returns list of records seller table related product based on foreign key.

if want amend have 2 options.

  1. change tree view seller model. downside effects everywhere tree view displayed unless start mucking contexts , over-riding methods.

  2. inherit view , embed tree view inside field xml becomes:

the upside change affects 1 form , can customise want. downside duplication have 2 tree views seller model, main 1 , nested 1 in practice isn't problem.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -