diff --git a/content/developer/howtos/rdtraining/11_constraints.rst b/content/developer/howtos/rdtraining/11_constraints.rst index cabb3a172..bfcd8e8bd 100644 --- a/content/developer/howtos/rdtraining/11_constraints.rst +++ b/content/developer/howtos/rdtraining/11_constraints.rst @@ -101,7 +101,7 @@ raise an exception if its invariant is not satisfied:: # all records passed the test, don't return anything A simple example can be found -`here `__. +`here `__. .. exercise:: Add Python constraints. @@ -113,7 +113,8 @@ A simple example can be found .. warning:: Always use the :meth:`~odoo.tools.float_utils.float_compare` and - :meth:`~odoo.tools.float_utils.float_is_zero` methods when working with floats! + :meth:`~odoo.tools.float_utils.float_is_zero` methods from `odoo.tools.float_utils` when + working with floats! Ensure the constraint is triggered every time the selling price or the expected price is changed!