Skip to content

Commit b280073

Browse files
committed
[IMP] util/records: docs improvement
Normalize the return types. closes #228 Signed-off-by: Alvaro Fuentes Suarez (afu) <[email protected]>
1 parent 5d24564 commit b280073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/records.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ def rename_xmlid(cr, old, new, noupdate=None, on_collision="fail"):
753753
`merge` or `fail` (default)
754754
:return: the ID of the record referenced by the *new* xml_id, `None` when the record
755755
doesn't exist
756-
:rtype: int or `None`
756+
:rtype: int or None
757757
"""
758758
if "." not in old or "." not in new:
759759
raise ValueError("Please use fully qualified name <module>.<name>")
@@ -860,7 +860,7 @@ def ref(cr, xmlid):
860860
861861
:param str xml_id: record xml_id, under the format `module.name`
862862
:return: ID of the referenced record, `None` if not found.
863-
:rtype: int or `None`
863+
:rtype: int or None
864864
"""
865865
if "." not in xmlid:
866866
raise ValueError("Please use fully qualified name <module>.<name>")

0 commit comments

Comments
 (0)