diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/payment_odoo_by_adyen/views | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/payment_odoo_by_adyen/views')
| -rw-r--r-- | addons/payment_odoo_by_adyen/views/payment_odoo_by_adyen_templates.xml | 9 | ||||
| -rw-r--r-- | addons/payment_odoo_by_adyen/views/payment_views.xml | 22 |
2 files changed, 31 insertions, 0 deletions
diff --git a/addons/payment_odoo_by_adyen/views/payment_odoo_by_adyen_templates.xml b/addons/payment_odoo_by_adyen/views/payment_odoo_by_adyen_templates.xml new file mode 100644 index 00000000..1aaa50f4 --- /dev/null +++ b/addons/payment_odoo_by_adyen/views/payment_odoo_by_adyen_templates.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data noupdate="1"> + <template id="odoo_by_adyen_form"> + <input type="hidden" name="data_set" t-att-data-action-url="tx_url" data-remove-me=""/> + <input type="hidden" name="data" t-att-value="data"/> + </template> + </data> +</odoo> diff --git a/addons/payment_odoo_by_adyen/views/payment_views.xml b/addons/payment_odoo_by_adyen/views/payment_views.xml new file mode 100644 index 00000000..715aefac --- /dev/null +++ b/addons/payment_odoo_by_adyen/views/payment_views.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <record id="acquirer_form_odoo_by_adyen" model="ir.ui.view"> + <field name="name">acquirer.form.odoo.by.adyen</field> + <field name="model">payment.acquirer</field> + <field name="inherit_id" ref="payment.acquirer_form"/> + <field name="arch" type="xml"> + <xpath expr='//group[@name="acquirer"]' position='inside'> + <group attrs="{'invisible': [('provider', '!=', 'odoo_adyen')]}"> + <button name="odoo_adyen_create_account" icon="fa-arrow-right" type="object" class="btn-link" string="Create an account in 1 minute" + attrs="{'invisible': [('odoo_adyen_account_id', '!=', False)]}"/> + <field name="odoo_adyen_account_id" readonly="1" attrs="{'invisible': [('odoo_adyen_account_id', '=', False)]}"/> + <field name="odoo_adyen_payout_id" attrs="{'invisible': [('odoo_adyen_account_id', '=', False)], 'required':[('provider', '=', 'odoo_adyen'), ('state', '!=', 'disabled')]}"/> + </group> + </xpath> + </field> + </record> + + </data> +</odoo> |
