How to create a new QWeb template using as a base existing one

When creating a new QWeb template in Odoo that is very similar to an existing one, which still needs to be left unchanged, there is no need to rewrite the whole code from the existing template. Instead, it is enough to inherit it with flag primary=True and to make the required changes for the new template.

For example, If a new report is needed in the Sale module, that is very similar to the existing one, but the existing one is still required as it is, the definition for the new report template should look like following:

    <template id="new_report_saleorder_document" inherit_id="sale.report_saleorder_document" primary="True">
        <!-- Here goes the customization part -->
in Tips