mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Now OpenERP only propose 'debit' payment modes on Direct Debits and 'payment' payment modes on Payment Orders.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import account_payment
|
||||
import payment_line
|
||||
import payment_mode
|
||||
import payment_mode_type
|
||||
import payment_mode
|
||||
import payment_order_create
|
||||
import banking_import_transaction
|
||||
import banking_transaction_wizard
|
||||
|
||||
@@ -50,4 +50,8 @@ class payment_mode(orm.Model):
|
||||
help=('Limit selected invoices to invoices with these payment '
|
||||
'terms')
|
||||
),
|
||||
'payment_order_type': fields.related(
|
||||
'type', 'payment_order_type', readonly=True, type='selection',
|
||||
selection=[('payment', 'Payment'), ('debit', 'Direct debit')],
|
||||
string="Payment Order Type"),
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<field name="inherit_id" ref="account_banking_payment_export.view_payment_mode_form_inherit"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="type" position="after">
|
||||
<field name="payment_order_type"/>
|
||||
<group colspan="4" col="4">
|
||||
<group colspan="2">
|
||||
<separator colspan="2"
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
icon="gtk-find"
|
||||
/>
|
||||
</xpath>
|
||||
<field name="mode" position="attributes">
|
||||
<attribute name="domain">[('payment_order_type', '=', payment_order_type)]</attribute>
|
||||
</field>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user