summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-02-07 10:09:43 +0000
committerVictor Feyens <vfe@odoo.com>2020-02-07 14:00:13 +0000
commitbfad367afe34e1c93b38fd82c706ab78304b0d63 (patch)
treed6d9963ebfa943d61d65914557c26da7149fd8b7
parent3e9b73b1ee06a1b1014fbfeeba6b04b2d3c5d1a1 (diff)
[IMP] doc: some precisions/fixes
closes odoo/odoo#44869 X-original-commit: c8c311b8d463d1db7f3700c1bb5dac076abab905 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
-rw-r--r--doc/reference/reports.rst5
-rw-r--r--odoo/fields.py6
2 files changed, 7 insertions, 4 deletions
diff --git a/doc/reference/reports.rst b/doc/reference/reports.rst
index efed6b4e761..edf93a2faeb 100644
--- a/doc/reference/reports.rst
+++ b/doc/reference/reports.rst
@@ -42,7 +42,10 @@ can take the following attributes:
the model your report will be about
``report_type`` (mandatory)
either ``qweb-pdf`` for PDF reports or ``qweb-html`` for HTML
-``report_name``
+``file``
+ The path to the main report file (depending on Report Type)
+ or empty if the content is in another field
+``print_report_name``
the name of your report (which will be the name of the PDF output)
``groups``
:class:`~odoo.fields.Many2many` field to the groups allowed to view/use
diff --git a/odoo/fields.py b/odoo/fields.py
index 7f5ef5d1eb5..3de87106fd5 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -1196,10 +1196,10 @@ class Integer(Field):
class Float(Field):
- """The precision digits are given by the attribute
+ """The precision digits are given by the (optional) digits attribute.
- :param digits: a pair (total, decimal) or a
- string referencing a `decimal.precision` record.
+ :param digits: a pair (total, decimal) or a string referencing a
+ :class:`~odoo.addons.base.models.decimal_precision.DecimalPrecision` record name.
:type digits: tuple(int,int) or str
When a float is a quantity associated with an unit of measure, it is important