Debian Codegraph @

addons/account_peppol/views/res_config_settings_views.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="res_config_settings_view_form" model="ir.ui.view">
4 <field name="name">res.config.settings.view.form.inherit.proxy.user</field>
5 <field name="model">res.config.settings</field>
6 <field name="inherit_id" ref="account.res_config_settings_view_form"/>
7 <field name="arch" type="xml">
8 <xpath expr="//div[@id='account_peppol_install']" position="replace">
9 <div id="account_peppol" class="col-12 o_setting_box col-lg-6 o_searchable_setting">
10 <div class="o_setting_right_pane border-0" invisible="account_is_token_out_of_sync">
11 <!-- Info in case of sender. -->
12 <div invisible="peppol_use_parent_company or account_peppol_proxy_state != 'sender'">
13 Your Peppol ID <field name="account_peppol_edi_identification" class="oe_inline o_form_label" readonly="1"/>.
14 <span class="ps-2" invisible="account_peppol_edi_mode == 'prod'">
15 (<field class="oe_inline o_form_label text-uppercase" name="account_peppol_edi_mode"/>)
16 </span>
17 <br/>
18 But you are receiving your e-invoices via this Access Point: <field name="peppol_external_provider" class="oe_inline o_form_label" readonly="1"/>.
19 </div>
20 <!-- Info in case of receiver/smp_registration. -->
21 <div invisible="peppol_use_parent_company or account_peppol_proxy_state not in ('receiver', 'smp_registration')">
22 Your Peppol ID <field name="account_peppol_edi_identification" class="oe_inline o_form_label" readonly="1"/>.
23 <span class="ps-2" invisible="account_peppol_edi_mode == 'prod'">
24 (<field class="oe_inline o_form_label text-uppercase" name="account_peppol_edi_mode"/>)
25 </span>
26 <div invisible="account_peppol_proxy_state != 'smp_registration'">
27 Your registration should be activated within a day.
28 </div>
29 </div>
30 <div class="row mt-1"
31 invisible="peppol_use_parent_company or account_peppol_proxy_state == 'not_registered'">
32 <label string="Peppol Contact Email"
33 for="account_peppol_contact_email"
34 class="col-lg-5 o_light_label"/>
35 <field name="account_peppol_contact_email"
36 required="account_peppol_proxy_state in ('sender', 'smp_registration', 'receiver')"/>
37 </div>
38 <div class="o_setting_right_pane" id="peppol_participation_role_config" company_dependent="1"
39 invisible="not peppol_participation_role">
40 <div class="mb-2">
41 <span class="o_form_label">
42 <label string="Peppol Participation Role" for="peppol_participation_role"/>
43 </span>
44 </div>
45 <field name="peppol_participation_role" widget="radio"/>
46 </div>
47 <!-- Info in case of rejected. -->
48 <div invisible="peppol_use_parent_company or account_peppol_proxy_state != 'rejected'">
49 You registration has been rejected, the reason has been sent to you via email.
50 Please contact our support if you need further assistance.
51 </div>
52 <!-- Info in case of a branch company using the active peppol connection from their parent. -->
53 <div invisible="not peppol_use_parent_company">
54 You are sending from <field name="peppol_parent_company_name" class="oe_inline o_form_label" readonly="1"/>.
55 </div>
56
57 <div class="d-flex gap-1 action_buttons mt-2"
58 invisible="peppol_use_parent_company or account_peppol_proxy_state not in ('sender', 'smp_registration', 'receiver')">
59 <!-- Deprecated button for advanced configuration -->
60 <button string="Advanced Configuration"
61 icon="oi-arrow-right"
62 name="button_open_peppol_config_wizard"
63 type="object"
64 class="btn-link"
65 invisible="True"/>
66 <button string="Disconnect Peppol"
67 name="button_peppol_deregister"
68 type="object"
69 class="btn-primary me-1"/>
70 </div>
71 <div class="d-flex gap-1 action_buttons" colspan="3">
72 <!-- Not yet registered on Peppol -->
73 <div invisible="peppol_use_parent_company or account_peppol_proxy_state != 'not_registered'">
74 <div class="text-muted">
75 Allow sending and receiving invoices through the Peppol network
76 </div>
77 <button name="action_open_peppol_form"
78 type="object"
79 string="Activate Electronic Invoicing"
80 class="oe_highlight mt-2"/>
81 </div>
82 <!-- deprecated Registered on Peppol -->
83 <div invisible="True" class="mt-3">
84 <button string="Register with Odoo"
85 name="button_peppol_register_sender_as_receiver"
86 type="object"
87 class="btn-primary me-1"
88 invisible="account_peppol_proxy_state != 'sender'"/>
89 </div>
90 <!--Branch company connected to parent's active peppol connection.-->
91 <div invisible="not peppol_use_parent_company" class="mt-2">
92 <button string="Disconnect"
93 name="button_peppol_disconnect_branch_from_parent"
94 type="object"
95 class="btn-secondary me-1"/>
96 </div>
97 </div>
98 </div>
99 <div class="row mb-3" invisible="not account_is_token_out_of_sync">
100 <div class="content-group">
101 Your Peppol identification is:
102 <field name="account_peppol_edi_identification" nolabel="1"/>
103 </div>
104 <div class="content-group mt-3 alert alert-danger" role="alert">
105 <div class="d-flex align-items-start">
106 <i class="fa fa-exclamation-triangle fa-lg me-3 mt-1" aria-hidden="true"></i>
107 <div>
108 <span><strong>Disconnected from Peppol!</strong></span>
109 <p>
110 Your database is not linked to Peppol anymore. This might be due to a database duplication or restoration.
111 Make sure to reconnect the correct database.
112 </p>
113 </div>
114 </div>
115 <div class="mt-3 d-flex gap-1">
116 <button name="button_reconnect_this_database"
117 type="object"
118 string="Reconnect this database"
119 class="btn btn-primary"
120 icon="fa-refresh"/>
121 <button name="button_disconnect_this_database"
122 type="object"
123 string="Disconnect this database"
124 class="btn btn-danger"
125 icon="fa-unlink"/>
126 </div>
127 </div>
128 </div>
129 </div>
130 <setting
131 invisible="account_is_token_out_of_sync or peppol_use_parent_company or peppol_participation_role != 'sending_and_receiving'">
132 <div class="row" name="peppol_journal_config">
133 <label string="Incoming Accounting Journal"
134 for="account_peppol_purchase_journal_id"
135 class="col-lg-5"/>
136 <field name="account_peppol_purchase_journal_id"
137 class="col-lg-7"
138 required="account_peppol_proxy_state in ('smp_registration', 'receiver')
139 and peppol_participation_role != 'sending_only'"/>
140 </div>
141 </setting>
142 </xpath>
143 </field>
144 </record>
145 </odoo>