-
Invoice and shipping address:
-
Invoice address:
-
+
Invoice and shipping address:
+
Invoice address:
+
<...>
@@ -176,9 +174,22 @@ For example, let's look at the Sale Order report from the Sale module::
-The main template calls translate_doc with ``partner_id.lang`` as a parameter,
-which means it uses :ref:`a custom report model
-
` to access a ``res.partner`` record.
+The main template calls the translatable template with ``doc.partner_id.lang`` as a
+``t-lang`` parameter, so it will be rendered in the language of the partner. This way,
+each Sale Order will be printed in the language of the corresponding customer. If you wish
+to translate only the body of the document, but keep the header and footer in a default
+language, you could call the report's external layout this way::
+
+
+
+.. tip::
+
+ Please take note that this works only when calling external templates, you will not be
+ able to translate part of a document by setting a ``t-lang`` attribute on an xml node other
+ than ``t-call``. If you wish to translate part of a template, you can create an external
+ template with this partial template and call it from the main one with the ``t-lang``
+ attribute.
+
Barcodes
--------