diff --git a/pending_call.py b/pending_call.py index 9d1e855..88f0c74 100644 --- a/pending_call.py +++ b/pending_call.py @@ -8,3 +8,7 @@ class PendingCall(ModelSQL, ModelView): __name__ = "sale.pending_call" date = fields.Date('Date', required=True) + + def get_rec_name(self, name): + if self.date: + return str(self.date) diff --git a/view/prospect_trace_form.xml b/view/prospect_trace_form.xml index 1a18c6c..958fb07 100644 --- a/view/prospect_trace_form.xml +++ b/view/prospect_trace_form.xml @@ -25,7 +25,8 @@ this repository contains the full copyright notices and license terms. --> - +