Has odoo any field that be like python list?
For example for my model i need to have a field that is a list of integers
Then for a record i can modify it if i want
Or i can append some object to it and so on.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Has odoo any field that be like python list?
For example for my model i need to have a field that is a list of integers
Then for a record i can modify it if i want
Or i can append some object to it and so on.
Hello,
I don't quite understand your use case, but here are two links where you can find information about the fields available in Odoo:
https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#fields
I hope it helps you.
Regards
Hi,
The only way I found is to :
To read your field you must do : my_list_of_int = map(int, myfield.split(',')) if myfield else [] (or, with for loop : [int(x) for x in myfield.split(',')] if myfield else [] )
A little bit painfull but not so tricky. Does anybody has a better idea ?
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація
Thanks🙏
I used ManytoOne to cteate a list