This question has been flagged
1612 Views

Hi,
I have another doubt here.I want to know the way to find which field is applied in _rec_name in the particular model.
I have taken that model id from ir.model table and also I could find all the fields list created in that model through ir.model.fields table.But I could not find which field is used in _rec_name in a model.
Could you please help me?

Example,

class mrp_bom_line(osv.osv):
    _name = 'mrp.bom.line'   

    _order = "sequence"   

   _rec_name = "product_id"

I want to know to which table contains the model details such as name, order, rec_name details.

ir_model table has all the model ids and ir_model_fields table has all the model's fields details.Like this I want to know which table has the details of a model.


Avatar
Discard