Files
enterprise-addons/website_delivery_sendcloud/views/delivery_sendcloud_view.xml
T

21 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_delivery_carrier_form" model="ir.ui.view">
<field name="name">delivery.carrier.sendcloud.locations</field>
<field name="model">delivery.carrier</field>
<field name="inherit_id" ref="delivery_sendcloud.view_delivery_carrier_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='sendcloud_shipping_rules']" position="after">
<field name="sendcloud_can_customize_use_locations" invisible="1"/>
<field name="sendcloud_use_locations" readonly="not sendcloud_can_customize_use_locations"/>
<label for="sendcloud_locations_radius_value" invisible="not sendcloud_use_locations" string="Locations Radius"/>
<div class="o_row" invisible="not sendcloud_use_locations">
<field name="sendcloud_locations_radius_value" class="pe-1 oe_inline"/>
<field name="sendcloud_locations_radius_unit_name"/>
</div>
</xpath>
</field>
</record>
</odoo>