<odoo>

    <record model="ir.ui.view" id="stock_picking_form_add_comment">
      <field name="name">stock.picking.form.comment</field>
      <field name="model">stock.picking</field>
      <field name="inherit_id" ref="stock.view_picking_form"/>
      <field name="arch" type="xml">
        <xpath expr="//notebook" position="inside">
          <page string="Comments" name="comments">
            <p style="margin-top: 10px;">The comments will be displayed on the printed document. You can load a predefined template, write your own text or load a template and then modify it only for this document.</p>
            <group string="Top Comments">
              <field name="comment_template1_id"
                string="Load a template"
                domain="[('position','=','before_lines')]"
                context="{'default_position': 'before_lines'}"/>
              <field name="note1" nolabel="1" colspan="2"/>
            </group>
            <group string="Bottom Comments">
              <field name="comment_template2_id"
                string="Load a template"
                context="{'default_position': 'after_lines'}"
                domain="[('position','=','after_lines')]"/>
              <field name="note2" nolabel="1" colspan="2"/>
            </group>
          </page>
        </xpath>
      </field>
    </record>

</odoo>
