trytondo-sale_opportunity_m.../pending_call.py
camilogs 8ab3a97b3c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: Se admite fecha y hora en llamada pendiente, closed #25
2023-08-14 20:00:41 -05:00

15 lines
456 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, ModelView, fields
class PendingCall(ModelSQL, ModelView):
'Llamada pendiente a un prospecto'
__name__ = "sale.pending_call"
date = fields.DateTime('Date', required=True)
def get_rec_name(self, name):
if self.date:
return str(self.date)