forked from OCA/l10n-spain
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdelivery_carrier_views.xml
49 lines (49 loc) · 2.22 KB
/
delivery_carrier_views.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020 Trey, Kilobytes de Soluciones
Copyright 2020 FactorLibre
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_delivery_carrier_form" model="ir.ui.view">
<field name="model">delivery.carrier</field>
<field name="inherit_id" ref="delivery.view_delivery_carrier_form" />
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page
string="Integration"
attrs="{'invisible': ['|', ('delivery_type', '!=', 'seur'), ('integration_level', '!=', 'rate_and_ship')]}"
>
<group
attrs="{'required': [('delivery_type', '=', 'seur'), ('integration_level', '=', 'rate_and_ship')]}"
>
<group string="Identification">
<field name="seur_vat" />
<field name="seur_franchise_code" />
<field name="seur_accounting_code" />
<field name="seur_integration_code" />
</group>
<group string="CIT Credentials">
<field name="seur_cit_username" />
<field name="seur_cit_password" />
</group>
<group string="Service">
<field name="seur_service_code" />
<field name="seur_product_code" />
<field name="seur_send_sms" />
</group>
<group string="WS Credentials">
<field name="seur_ws_username" />
<field name="seur_ws_password" />
</group>
<group string="Label">
<field name="seur_printer" />
<field name="seur_label_format" />
<field name="seur_label_size" />
</group>
</group>
</page>
</xpath>
</field>
</record>
</odoo>