snailmail_account/wizard/account_move_send_views.xml

42 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="account_move_send_inherit_snailmail" model="ir.ui.view">
<field name="name">account.move.send.form.inherit.snailmail</field>
<field name="model">account.move.send</field>
<field name="inherit_id" ref="account.account_move_send_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='standard_options']" position="inside">
<field name="enable_send_by_post" invisible="1"/>
<field name="send_by_post_readonly" invisible="1"/>
<div name="option_send_by_post"
invisible="not enable_send_by_post">
<field name="checkbox_send_by_post" readonly="send_by_post_readonly"/>
<b><label for="checkbox_send_by_post" class="mr4"/></b>
<i class="fa fa-question-circle"
role="img"
aria-label="Warning"
title="The address is unknown on the partner"
invisible="not send_by_post_readonly"/>
<span invisible="send_by_post_cost in (0, 1) or not checkbox_send_by_post">
<b>(
<field name="send_by_post_cost" options="{'digits':[0,0]}" class="mr4"/>
<label for="send_by_post_cost"/>
)</b>
</span>
</div>
</xpath>
<xpath expr="//div[@name='warnings']" position="inside">
<div class="alert alert-warning"
role="alert"
invisible="not send_by_post_warning_message">
<field name="send_by_post_warning_message"/>
</div>
</xpath>
</field>
</record>
</odoo>