I want to only limited characters display in my Html Field
for example :
note=field.Html(size=250)
but this is not worked
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to only limited characters display in my Html Field
for example :
note=field.Html(size=250)
but this is not worked
You use constrains decorator, for example:
@api.one
@api.constrains('note')
def _check_len_html(self):
if len(self.note)>250:
raise ValidationError("Html is too long")
how self.html works any idea it will get an error object has no attribute html i've tried this but it wont work
Sorry, my mistake, should be len(self.note)
Thanks for your help i done this
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Aug 24
|
5497 | ||
|
4
Jul 24
|
38801 | ||
Default value in form view
Solved
|
|
5
Apr 23
|
93678 | |
|
3
Nov 22
|
2952 | ||
|
3
Aug 22
|
3035 |