summaryrefslogtreecommitdiff
path: root/addons/payment/views/account_payment_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/payment/views/account_payment_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/payment/views/account_payment_views.xml')
-rw-r--r--addons/payment/views/account_payment_views.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/addons/payment/views/account_payment_views.xml b/addons/payment/views/account_payment_views.xml
new file mode 100644
index 00000000..c6ce4c1a
--- /dev/null
+++ b/addons/payment/views/account_payment_views.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<odoo>
+ <data>
+ <record id="view_account_payment_form_inherit_payment" model="ir.ui.view">
+ <field name="name">view.account.payment.form.inherit.payment</field>
+ <field name="model">account.payment</field>
+ <field name="inherit_id" ref="account.view_account_payment_form"/>
+ <field name="arch" type="xml">
+ <xpath expr='//group[2]' position="inside">
+ <field name="payment_transaction_id" groups="base.group_no_one" attrs="{'invisible': [('payment_method_code', '!=', 'electronic')]}"/>
+ </xpath>
+ <field name="payment_method_id" position="after">
+ <field name="payment_method_code" invisible="1"/>
+ <field name="related_partner_ids" invisible="1"/>
+ <field name="payment_token_id" options="{'no_create': True}"
+ attrs="{'invisible': [('payment_method_code', '!=', 'electronic')], 'readonly': [('state', '!=', 'draft')]}"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</odoo>