From 9b2c40d82122fbff2166a67add6608a8495c1bd7 Mon Sep 17 00:00:00 2001 From: camilogs Date: Sun, 13 Aug 2023 21:05:57 -0500 Subject: [PATCH] feat: Se hace visible agenda de llamadas en vista tree de prospect_trace, closed #31 --- pending_call.py | 4 ++++ view/prospect_trace_form.xml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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. --> - +