From 1e2e38b96a8de9a4646f5242b9bc4cebb37934ff Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 16 Sep 2015 10:02:37 +0200 Subject: [PATCH] [FIX] translate docstrings rst literals are double-quoted --- openerp/fields.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/openerp/fields.py b/openerp/fields.py index 5708c022c64..002445d6df1 100644 --- a/openerp/fields.py +++ b/openerp/fields.py @@ -1181,9 +1181,10 @@ class Char(_String): :param int size: the maximum size of values stored for that field :param translate: enable the translation of the field's values; use - `translate=True` to translate field values as a whole; `translate` may - also be a callable such that `translate(callback, value)` translates - `value` by using `callback(term)` to retrieve the translation of terms. + ``translate=True`` to translate field values as a whole; ``translate`` + may also be a callable such that ``translate(callback, value)`` + translates ``value`` by using ``callback(term)`` to retrieve the + translation of terms. """ type = 'char' _slots = { @@ -1209,9 +1210,10 @@ class Text(_String): have a size and usually displayed as a multiline text box. :param translate: enable the translation of the field's values; use - `translate=True` to translate field values as a whole; `translate` may - also be a callable such that `translate(callback, value)` translates - `value` by using `callback(term)` to retrieve the translation of terms. + ``translate=True`` to translate field values as a whole; ``translate`` + may also be a callable such that ``translate(callback, value)`` + translates ``value`` by using ``callback(term)`` to retrieve the + translation of terms. """ type = 'text'