[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
committed by Enric Tobella
parent 920ff73e72
commit 5b4a5e3432

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 = {