Reviewers: ,
Please review this at http://codereview.tryton.org/367001/
Affected files:
M doc/ref/models/fields.rst
M doc/ref/models/models.rst
Index: doc/ref/models/fields.rst
===================================================================
--- a/doc/ref/models/fields.rst
+++ b/doc/ref/models/fields.rst
@@ -146,6 +146,11 @@
Define how the field must be loaded: ``lazy`` or ``eager``.
+``default``
+-----------
+
+See the method
``Model.default_<field_name>``: :attr:`~trytond.model.Model.default_`
+
Field types
===========
Index: doc/ref/models/models.rst
===================================================================
--- a/doc/ref/models/models.rst
+++ b/doc/ref/models/models.rst
@@ -95,6 +95,14 @@
Return the definition of each field on the model.
+.. method:: Model.default_()
+
+ The method signature is::
+
+ default_<field name>()
+
+ Return the default value for ``field name``.
+
=========
ModelView
=========
--
[email protected] mailing list