Skip to content

cannot find custom fields in object #143

@Juanchote

Description

@Juanchote

Hi i have created this ir.model.field:

#<IrModelFields:0x007f12abc66c08 @associations= {"write_uid"=>[1, "Administrator"], "create_uid"=>[1, "Administrator"], "model_id"=>[157, "Información de un proveedor de producto"], "groups"=>[], "serialization_field_id"=>false}, @attributes= {"domain"=>"[]", "select_level"=>true, "create_date"=>"2016-08-11 09:41:08", "write_date"=>"2016-08-11 09:41:08", "on_delete"=>"set null", "selection"=>nil, "relation"=>nil, "id"=>6271, "size"=>0, "display_name"=>"supplier cost price", "__last_update"=>"2016-08-11 09:41:08", "readonly"=>false, "state"=>"manual", "complete_name"=>nil, "relation_field"=>nil, "ttype"=>"float", "translate"=>false, "selectable"=>true, "name"=>"x_supplier_cost_price", "required"=>true, "modules"=>nil, "model"=>"product.supplierinfo", "field_description"=>"supplier cost price"},

and added the field into odoo forms and added some test value but when accessing the object i cannot find the custom field or any relation associated with that..

#<ProductSupplierinfo:0x007f12a719a7b0 @associations= {"create_uid"=>[1, "Administrator"], "pricelist_ids"=>[], "name"=>[27, "(test) Petsonline.com"], "product_uom"=>[1, "Unidad(es)"], "write_uid"=>[1, "Administrator"], "company_id"=>[1, "Simply EELP SL"], "product_tmpl_id"=>[4, "Cuidar Animales raros"]}, @attributes= {"create_date"=>"2016-07-21 14:53:35", "sequence"=>1, "__last_update"=>"2016-08-11 10:34:48", "qty"=>0.0, "id"=>4, "delay"=>1, "write_date"=>"2016-08-11 10:34:48", "display_name"=>"(test) Petsonline.com", "min_qty"=>0.0, "product_code"=>nil, "product_name"=>nil}, @changed_attributes={}, @ir_model_data_id=nil, @lazy=false, @loaded_associations={}, @marked_for_destruction=false, @persisted=true, @previously_changed={}, @skip=false>

is this an issue? i am missing anything from the doc?
:\

regards,
juanma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions