Initial commit of account_payment_electronic for 12.0

This commit is contained in:
Jared Kipe
2019-01-07 16:24:08 -08:00
parent 59fe334360
commit 950d7be1e9
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,20 @@
{
'name': 'Account Payment Electronic',
'author': 'Hibou Corp. <hello@hibou.io>',
'category': 'Hidden',
'version': '12.0.1.0.0',
'description':
"""
Register Electronic Payments
============================
Adds the payment token mechanism onto stock 'Register Payment' Wizard.
""",
'depends': [
'payment',
],
'auto_install': False,
'data': [
'views/account_views.xml',
],
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_account_payment_form_inherit" model="ir.ui.view">
<field name="name">account.payment.form.inherit</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='payment_method_code']" position="after">
<field name="payment_token_id" options="{'no_create': True}"
attrs="{'invisible': [('payment_method_code', '!=', 'electronic')],
'required': [('payment_method_code', '=', 'electronic')]}"/>
</xpath>
</field>
</record>
</odoo>