How To Add Constrains For A Field  in Odoo12

How To Add Constrains For A Field in Odoo12

Odoo Mates

4 года назад

10,081 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Sasa lisa
Sasa lisa - 09.05.2022 09:50

how to constrains the value from another field?

Ответить
Anthony Kingsley
Anthony Kingsley - 01.09.2021 08:19

Hello Mates,
Please I have two fields in different modules (one is a One2many to the other) and I want to get the difference (balance) between the two fields and add a constrains if the difference (balance) is <= 0.

Ответить
Maane Adel
Maane Adel - 24.04.2021 05:47

Hi again Bro
how to check a field is validate email format in odoo

Ответить
Bram
Bram - 02.03.2021 19:58

Hi Mates! Thanks for this lesson. I am fond of your style in explaining 'how to' scenarios, by observing similar syntax, copying it, then modifying it, so I can follow it, even I am not using the same odoo version. Sometimes the syntax is different (g.e: track_visibility="always" in odoo12, tracking=True in odoo14), but by follow your 'how to' scenarios, the result is correct. :)

Ответить
Arvind Gupta
Arvind Gupta - 10.02.2021 20:37

Module not found error: odoo.exception how to solved

Ответить
Nadeem Kazi
Nadeem Kazi - 21.01.2021 23:38

Thnks👍

Ответить
kashif manzoor
kashif manzoor - 13.08.2020 23:45

thank you mates for such an easy and amazing feeding of concepts. May you grow more

Ответить
Ansori Web ID
Ansori Web ID - 08.04.2020 11:57

your code:
if rec.patient_age <= 5:
raise ValidationError(_('Age must be greater than 5.'))

while save record, in pop up error message show like this:
Error while validating constraint
name '_' is not defined


then i changed the code like this: (remove _ and () )
if rec.patient_age <= 5:
raise ValidationError('Age must be greater than 5.')

it works well.

why it is happen?
what's wrong with my code?

thank you.

Ответить
Enrico Saccheggiani
Enrico Saccheggiani - 05.01.2020 11:03

thanks so much for your interesting video.
I would like to know ho to validate data on a odoo html page .


If you have any link to any video that teach ho to validate fields in a html odoo page.


thanks a lot however

Ответить
janardhana reddy
janardhana reddy - 19.11.2019 17:48

can you explain me the process of adding images in the form view in odoo 13.0? Any additional component need to be downloaded

Ответить
El Mehdi aa
El Mehdi aa - 11.11.2019 13:25

it possible to change title error 'odoo server error'?
thanks

Ответить
Michel l'Amie
Michel l'Amie - 16.08.2019 21:09

Cool, can you also use this for IP address validation (when a field should contain a valid IP address)?

Ответить