Hi,
How I can read or return the value chosen from a selection field? I need the user to select values from a list, and use the selected value to complete the information in other fields in the form.
Thanks.
Some code used to test, with error:
....
'seq_choosed': fields.selection([(11,'Product End'),(12,'Product Base')],'Sequence to use '),
...
lot_sequence = self.pool.get('ir.sequence').get_id(cr, uid, seq_choosed.value, context={} )
Hope this will helps: https://learnopenerp.blogspot.com/2021/08/get-selection-field-value-instead-of-key-odoo.html