Комментарии:
Hi.
What is difference between validationerror and usererror in odoo?
how to show errror using helper text under field in odoo ?
Ответить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.
ОтветитьHii Bro!! Good Noon.. Could you plz tell me how to add radio button field in odoo websites?
Ответить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?
How can I change the title?
Exists anothers validation types too, like UserError, can you explain more about it?
good example and explanation!
Ответить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?
Ответить