From bfad367afe34e1c93b38fd82c706ab78304b0d63 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 7 Feb 2020 10:09:43 +0000 Subject: [PATCH] [IMP] doc: some precisions/fixes closes odoo/odoo#44869 X-original-commit: c8c311b8d463d1db7f3700c1bb5dac076abab905 Signed-off-by: Victor Feyens (vfe) --- doc/reference/reports.rst | 5 ++++- odoo/fields.py | 6 +++--- 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