mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Move field bank_account_required from module account_payment_partner to account_payment_mode
Make the mandate a required field on payment line when the payment method has mandate_required=True Make the bank account a required field on payment line when the payment method has bank_account_required=True Minor code cleanup PEP8
This commit is contained in:
committed by
Enric Tobella
parent
5da671433e
commit
f43a9d3509
@@ -15,7 +15,10 @@ class AccountPaymentMethod(models.Model):
|
||||
"this payment method. Therefore, if you change it, "
|
||||
"the generation of the payment file may fail.")
|
||||
active = fields.Boolean(string='Active', default=True)
|
||||
# In the pain_base module, we will add a default_pain_version
|
||||
bank_account_required = fields.Boolean(
|
||||
string='Bank Account Required',
|
||||
help="Activate this option if this payment method requires you to "
|
||||
"know the bank account number of your customer or supplier.")
|
||||
display_name = fields.Char(
|
||||
compute='compute_display_name',
|
||||
store=True, string='Display Name')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<!-- The object account.payment.method is defined in the account module
|
||||
@@ -14,6 +14,7 @@ here. I hate the objects that don't have a view... -->
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="payment_type"/>
|
||||
<field name="bank_account_required"/>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
</form>
|
||||
@@ -59,4 +60,4 @@ here. I hate the objects that don't have a view... -->
|
||||
sequence="30" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user