Skip to Content
Menu
This question has been flagged
1854 Views

I am using sequence to let user  manually  change the presentation of data (property_type) , my python code is:

_order = "sequence, property_type"

sequence = fields.Integer('Sequence', default=1, help="Used to order stages. Lower is better.")
property_type = fields.Selection(string='Property Type1', required=True, \
selection=[('house', 'House'), ('apartment', 'Apartment'), ('penthouse', 'Penthouse'), ('castle', 'Castle')])
and my xml code (I don't know why each time I paste xml code, here it will get distorted or even missing so  I  enclosed  them  in  remark  tag ):

Avatar
Discard
Related Posts Replies Views Activity
2
Mar 24
7321
1
Feb 24
890
0
Feb 23
2827
0
Jan 23
86
1
Oct 22
3093