| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="nemhandel_registration_form" model="ir.ui.view"> |
| 4 |
<field name="name">nemhandel.registration.form</field> |
| 5 |
<field name="model">nemhandel.registration</field> |
| 6 |
<field name="group_ids" eval="[Command.link(ref('account.group_account_manager'))]"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<form> |
| 9 |
<sheet> |
| 10 |
<group name="nemhandel_registration" invisible="l10n_dk_nemhandel_proxy_state not in ('not_registered', 'in_verification')"> |
| 11 |
<div colspan="2" class="text-muted mb-3" invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'"> |
| 12 |
Send invoices and receive bills automatically on the Nemhandel network. |
| 13 |
</div> |
| 14 |
|
| 15 |
<!-- business fields --> |
| 16 |
<field name="identifier_type" |
| 17 |
string="Identifier Type" |
| 18 |
nolabel="1" |
| 19 |
invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'" |
| 20 |
class="o_field_peppol_eas_selection"/> |
| 21 |
<field name="identifier_value" |
| 22 |
string="Identifier Value" |
| 23 |
nolabel="1" |
| 24 |
invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'"/> |
| 25 |
<field name="contact_email" |
| 26 |
string="Email" |
| 27 |
invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'"/> |
| 28 |
<field name="phone_number" |
| 29 |
string="Phone" |
| 30 |
required="edi_mode != 'demo'" |
| 31 |
invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'"/> |
| 32 |
|
| 33 |
<!-- The participant needs to fill in the SMS code they received --> |
| 34 |
<div colspan="2" name="kyc" invisible="l10n_dk_nemhandel_proxy_state != 'in_verification'" class="mb-4"> |
| 35 |
<div class="text-muted mt-3"> |
| 36 |
Fill in the code below that we sent you by SMS to |
| 37 |
<field name="phone_number" |
| 38 |
class="oe_inline" |
| 39 |
nolabel="1" |
| 40 |
readonly="l10n_dk_nemhandel_proxy_state == 'in_verification'"/> |
| 41 |
</div> |
| 42 |
<div class="mt-1 ps-3 w-50"> |
| 43 |
<field name="verification_code" widget="nemhandel_verification_code"/> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
</group> |
| 47 |
|
| 48 |
<!-- edi mode info --> |
| 49 |
<div colspan="2" class="row" invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'"> |
| 50 |
<div class="text-muted col" invisible="edi_mode != 'prod'"> |
| 51 |
By clicking the button below I accept that Odoo may process my e-invoices. |
| 52 |
</div> |
| 53 |
<div class="text-muted col" invisible="edi_mode != 'test'"> |
| 54 |
Test mode allows sending e-invoices through the test Nemhandel network. |
| 55 |
By clicking the button below I accept that Odoo may process my e-invoices. |
| 56 |
</div> |
| 57 |
<div class="text-muted col" invisible="edi_mode != 'demo'"> |
| 58 |
In demo mode sending invoices is simulated. |
| 59 |
There will be no communication with the Nemhandel network. |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
</sheet> |
| 63 |
|
| 64 |
<footer> |
| 65 |
<div name="nemhandel_send_code" invisible="l10n_dk_nemhandel_proxy_state != 'not_registered'"> |
| 66 |
<button string="Activate Nemhandel" |
| 67 |
name="button_nemhandel_registration_sms" |
| 68 |
type="object" |
| 69 |
class="btn-primary" |
| 70 |
data-hotkey="q" |
| 71 |
invisible="edi_mode != 'prod'"/> |
| 72 |
<button string="Activate Nemhandel (Test)" |
| 73 |
name="button_nemhandel_registration_sms" |
| 74 |
type="object" |
| 75 |
class="btn-primary" |
| 76 |
data-hotkey="q" |
| 77 |
invisible="edi_mode != 'test'"/> |
| 78 |
<button string="Activate Nemhandel (Demo)" name="button_check_nemhandel_verification_code" type="object" |
| 79 |
class="btn-primary" data-hotkey="q" invisible="edi_mode != 'demo'"/> |
| 80 |
</div> |
| 81 |
<div name="nemhandel_check_code" invisible="l10n_dk_nemhandel_proxy_state != 'in_verification'"> |
| 82 |
<button string="Confirm" |
| 83 |
name="button_check_nemhandel_verification_code" |
| 84 |
type="object" |
| 85 |
class="btn-primary" |
| 86 |
data-hotkey="q"/> |
| 87 |
</div> |
| 88 |
<button string="Send again" |
| 89 |
name="send_nemhandel_verification_code" |
| 90 |
type="object" |
| 91 |
class="btn-secondary" |
| 92 |
invisible="l10n_dk_nemhandel_proxy_state != 'in_verification'"/> |
| 93 |
<button name="button_deregister_nemhandel_participant" |
| 94 |
string="Cancel Registration" |
| 95 |
type="object" |
| 96 |
class="btn-secondary" |
| 97 |
data-hotkey="x"/> |
| 98 |
</footer> |
| 99 |
</form> |
| 100 |
</field> |
| 101 |
</record> |
| 102 |
</odoo> |