You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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..
Same issue here. If i do a xmlrpc request in row I can get the field: models.execute_kw(db, uid, password,'project.task', 'read', [5758],{'fields': ['x_what_ever']})
This is running on odoo 7.
Just found a way to get my custom fields, you've to call reload_fields_definition on the model: ProjectTask.reload_fields_definition(true)
Should be cool to document it ;-)
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.
The text was updated successfully, but these errors were encountered: