Odoo Help

0

0
1 Answer
0
Avatar

René Schuster Germany

--René Schuster--
1778
| 7 7 10
Weinheim, Germany
--René Schuster--

Challenge Everything!

René Schuster Germany
03:58, 21/05/2014

To make your pets unique regarding name, owner and birthdate, your sql_constraint is just fine. (sql_constraints is a list of triples containing: the constraint name, the sql constraint function with arguments (comma seperated list of fields), and the error message)

You wont need your custom pet_id for that purpose.

Note: The sql_constraint is not checked whenever you change a field. It will be checked when you try to write to the database (save button).

 

If you need the pet_id for any other use, please post the detailed error log.

Regards.

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now