[IMP] sepa: make it easier to extend structured communication types

This commit is contained in:
Stéphane Bidoul
2014-12-14 14:51:28 +01:00
parent 5d4a435271
commit 9b997e42e8

View File

@@ -42,7 +42,9 @@ class PaymentLine(orm.Model):
"company. Depicts 'What do you want to say to the recipient "
"about this order ?'"),
'struct_communication_type': fields.selection(
_get_struct_communication_types, 'Structured Communication Type'),
lambda self, *args, **kwargs:
self._get_struct_communication_types(*args, **kwargs),
'Structured Communication Type'),
}
_defaults = {