odoo/ext/3rd-party-addons/invoice_comment_template/views/account_invoice_view.xml

33 lines
1.3 KiB
XML

<odoo>
<record model="ir.ui.view" id="invoice_form_add_comment">
<field name="name">account.invoice.form.comment</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/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>