fields.related and selection

Bug #385117 reported by Stephane Wirtel (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Husen Daudi

Bug Description

Is it possible to detect the values from a selection field pointed by a related field ?

Because we must define the same values of the selection field for the related field.

Regards,

Related branches

Revision history for this message
Husen Daudi (husendaudi) wrote :

Hello Stephane.
Its fixed in stable client. I have tested like this.
in partner I have added this field.
 'type':fields.related('address','type', type='selection', selection=[ ('default','Default'),('invoice','Invoice'), ('delivery','Delivery'), ('contact','Contact'), ('other','Other') ], string='Address Type'),

and in partner form and tree view I have added this field.

Changed in openobject-server:
assignee: nobody → hda (OpenERP) (hda-tinyerp)
status: New → Fix Released
Revision history for this message
Husen Daudi (husendaudi) wrote :

For fields.selection with function used for fill up selection box.
you can use type='char' and size='32'.
It will just display the value from related object and not whole selectionbox.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.