80. How To Raise Validation Error In Odoo || Odoo Validation || Validation Error In Odoo

80. How To Raise Validation Error In Odoo || Odoo Validation || Validation Error In Odoo

Odoo Mates

2 года назад

7,715 Просмотров

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


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

@a.m2705
@a.m2705 - 28.05.2023 23:02

Hi.
What is difference between validationerror and usererror in odoo?

Ответить
@dikkysetiawan8460
@dikkysetiawan8460 - 23.02.2023 08:01

how to show errror using helper text under field in odoo ?

Ответить
@nf6650
@nf6650 - 21.11.2022 21:26

How to change ValidationError into Confirmation? i want to compare last purchase, if there is product with higher price than the last purchase, then show confirmation pop up. so the new agrrement can still be saved and doesn't stop the execution of the method.

Ответить
@aadhishesanlakshmanan7354
@aadhishesanlakshmanan7354 - 28.10.2022 12:54

Hii Bro!! Good Noon.. Could you plz tell me how to add radio button field in odoo websites?

Ответить
@aadhishesanlakshmanan7354
@aadhishesanlakshmanan7354 - 13.10.2022 12:06

def action_validation(self):
for rec in self:
if rec.date_of_birth > fields.Date.today():
raise ValidationError("Enter Correct Details")


Hii Good Noon!! This is my code bro.. I want to get the pop up if today date is greater than DOB date (which we give manually). I'm also import the validation in header file.

Is this code is crt bro??

Bt still pop up not display?

Ответить
@alexmillan4528
@alexmillan4528 - 18.09.2022 06:16

How can I change the title?

Exists anothers validation types too, like UserError, can you explain more about it?

Ответить
@SaurabhMehta96
@SaurabhMehta96 - 05.06.2022 17:12

good example and explanation!

Ответить
@melvinguerra9563
@melvinguerra9563 - 03.05.2022 16:08

Perfect!, can you show us how we can make this same calculations using field computations. and in this example I can see you are calculating the differences between date fields, can you elaborate more on this?

Ответить