Debian Codegraph @

addons/delivery/wizard/choose_delivery_carrier_views.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="choose_delivery_carrier_view_form" model="ir.ui.view">
4 <field name="name">choose.delivery.carrier.form</field>
5 <field name="model">choose.delivery.carrier</field>
6 <field name="arch" type="xml">
7 <form>
8 <group>
9 <group>
10 <field name="carrier_id"/>
11 <label name="carried_weight_label" for="total_weight" groups="uom.group_uom"/>
12 <div name="carried_weight" class="o_row" groups="uom.group_uom">
13 <field name="total_weight"/>
14 <field name="weight_uom_name"/>
15 </div>
16 <field name="delivery_type" invisible="1"/>
17 <field name="currency_id" invisible="1"/>
18 <field name="order_id" invisible="1"/>
19 <field name='delivery_price' invisible="1"/>
20 <label for="display_price"/>
21 <div class="o_row">
22 <field name='display_price' widget="monetary" options="{'currency_field': 'currency_id'}" invisible="not carrier_id"/>
23 <button name="update_price" type="object" invisible="delivery_type in ('fixed', 'base_on_rule')">
24 <i class="oi oi-arrow-right me-1"/>Get rate
25 </button>
26 </div>
27 </group>
28 </group>
29 <div role="alert" class="alert alert-warning" invisible="invoicing_message == ''">
30 <field name="invoicing_message" nolabel="1"/>
31 </div>
32 <div role="alert" class="alert alert-info" invisible="context.get('no_rate') or not delivery_message">
33 <field name="delivery_message" nolabel="1"/>
34 </div>
35 <div role="alert" class="alert alert-danger" invisible="not context.get('no_rate') or not delivery_message">
36 <field name="delivery_message" nolabel="1"/>
37 </div>
38 <footer>
39 <button name="button_confirm" invisible="not context.get('carrier_recompute')" type="object" string="Update" class="btn-primary" data-hotkey="q"/>
40 <button
41 name="button_confirm"
42 type="object"
43 invisible="context.get('carrier_recompute') or not delivery_type in ('fixed', 'base_on_rule') and not display_price"
44 string="Add"
45 class="btn-primary"
46 data-hotkey="q"/>
47 <button
48 name="button_confirm"
49 type="object"
50 invisible="context.get('carrier_recompute') or display_price or delivery_type in ('fixed', 'base_on_rule')"
51 confirm="Are you sure you want the delivery to be free for this order? You might have forgotten to compute the rates."
52 string="Add"
53 class="btn-primary"
54 data-hotkey="q"/>
55 <button string="Discard" special="cancel" data-hotkey="x" class="btn-secondary"/>
56 </footer>
57 </form>
58 </field>
59 </record>
60 </odoo>