[IMP] payment: require a journal to enable a payment acquirer.

This commit is contained in:
Victor Feyens
2019-08-12 08:45:50 +00:00
parent 9de0bc1107
commit 2a3f550d41
+2 -1
View File
@@ -62,7 +62,8 @@
<field name="country_ids" widget="many2many_tags" placeholder="Select countries. Leave empty to use everywhere."/>
</group>
<group string="Payment Followup" name="payment_followup">
<field name="journal_id" context="{'default_type': 'bank'}"/>
<field name="journal_id" context="{'default_type': 'bank'}"
attrs="{'required': [('state', '!=', 'disabled'), ('provider', 'not in', ['manual', 'transfer'])]}"/>
</group>
</group>
</page>