mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Initial commit of account_payment_electronic for 12.0
This commit is contained in:
1
account_payment_electronic/__init__.py
Executable file
1
account_payment_electronic/__init__.py
Executable file
@@ -0,0 +1 @@
|
||||
|
||||
20
account_payment_electronic/__manifest__.py
Executable file
20
account_payment_electronic/__manifest__.py
Executable 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',
|
||||
],
|
||||
}
|
||||
15
account_payment_electronic/views/account_views.xml
Normal file
15
account_payment_electronic/views/account_views.xml
Normal 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>
|
||||
Reference in New Issue
Block a user