feat: se añade dominio a campo para agendar proxima llamada
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
bdcf78ad56
commit
ceb9f07aab
@ -8,6 +8,8 @@ from trytond.pyson import Eval
|
||||
from .selections.call_types import CallTypes
|
||||
from .selections.interest import Interest
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
||||
'Seguimiento de un prospecto'
|
||||
@ -84,7 +86,15 @@ class ScheduleCallStart(ModelView):
|
||||
'Inicio agendar llamada a seguimiento de prospecto'
|
||||
__name__ = 'sale.prospect_trace.schedule.start'
|
||||
|
||||
date_time = fields.DateTime('Date time')
|
||||
currency_date = fields.DateTime('Currency Date', readonly=True)
|
||||
date_time = fields.DateTime('Date time', domain=[
|
||||
('date_time', '>=', Eval('currency_date'))])
|
||||
|
||||
@classmethod
|
||||
def default_currency_date(cls):
|
||||
date = datetime.now()
|
||||
|
||||
return date
|
||||
|
||||
|
||||
class ScheduleCall(Wizard):
|
||||
@ -119,7 +129,16 @@ class MakeCallStart(ModelView):
|
||||
class MakeCallAsk(ModelView):
|
||||
'Posible agendación de llamada luego de hacer llamada actual'
|
||||
__name__ = 'sale.prospect_trace.make_call.ask'
|
||||
datetime = fields.DateTime('Date time')
|
||||
|
||||
currency_date = fields.DateTime('Currency Date', readonly=True)
|
||||
datetime = fields.DateTime('Date time', domain=[
|
||||
('datetime', '>=', Eval('currency_date'))])
|
||||
|
||||
@classmethod
|
||||
def default_currency_date(cls):
|
||||
date = datetime.now()
|
||||
|
||||
return date
|
||||
|
||||
|
||||
class MakeCall(Wizard):
|
||||
@ -175,7 +194,6 @@ class MakeCall(Wizard):
|
||||
|
||||
if self.start.schedule_call == 'yes':
|
||||
return 'ask'
|
||||
|
||||
return 'end'
|
||||
|
||||
def transition_schedule_call(self):
|
||||
|
@ -311,6 +311,7 @@ Reasignar prospectos por prospecto::
|
||||
>>> prospect_trace.calls[0].operator_who_called.name
|
||||
'Administrator'
|
||||
|
||||
|
||||
--------
|
||||
Reportes
|
||||
--------
|
||||
|
@ -2,6 +2,8 @@
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="currency_date"/>
|
||||
<field name="currency_date"/>
|
||||
<label name="datetime"/>
|
||||
<field name="datetime"/>
|
||||
</form>
|
||||
</form>
|
||||
|
@ -4,4 +4,4 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="date_time"/>
|
||||
<field name="date_time"/>
|
||||
</form>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user