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.call_types import CallTypes
|
||||||
from .selections.interest import Interest
|
from .selections.interest import Interest
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
||||||
'Seguimiento de un prospecto'
|
'Seguimiento de un prospecto'
|
||||||
@ -84,7 +86,15 @@ class ScheduleCallStart(ModelView):
|
|||||||
'Inicio agendar llamada a seguimiento de prospecto'
|
'Inicio agendar llamada a seguimiento de prospecto'
|
||||||
__name__ = 'sale.prospect_trace.schedule.start'
|
__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):
|
class ScheduleCall(Wizard):
|
||||||
@ -119,7 +129,16 @@ class MakeCallStart(ModelView):
|
|||||||
class MakeCallAsk(ModelView):
|
class MakeCallAsk(ModelView):
|
||||||
'Posible agendación de llamada luego de hacer llamada actual'
|
'Posible agendación de llamada luego de hacer llamada actual'
|
||||||
__name__ = 'sale.prospect_trace.make_call.ask'
|
__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):
|
class MakeCall(Wizard):
|
||||||
@ -175,7 +194,6 @@ class MakeCall(Wizard):
|
|||||||
|
|
||||||
if self.start.schedule_call == 'yes':
|
if self.start.schedule_call == 'yes':
|
||||||
return 'ask'
|
return 'ask'
|
||||||
|
|
||||||
return 'end'
|
return 'end'
|
||||||
|
|
||||||
def transition_schedule_call(self):
|
def transition_schedule_call(self):
|
||||||
|
@ -311,6 +311,7 @@ Reasignar prospectos por prospecto::
|
|||||||
>>> prospect_trace.calls[0].operator_who_called.name
|
>>> prospect_trace.calls[0].operator_who_called.name
|
||||||
'Administrator'
|
'Administrator'
|
||||||
|
|
||||||
|
|
||||||
--------
|
--------
|
||||||
Reportes
|
Reportes
|
||||||
--------
|
--------
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||||
this repository contains the full copyright notices and license terms. -->
|
this repository contains the full copyright notices and license terms. -->
|
||||||
<form>
|
<form>
|
||||||
|
<label name="currency_date"/>
|
||||||
|
<field name="currency_date"/>
|
||||||
<label name="datetime"/>
|
<label name="datetime"/>
|
||||||
<field name="datetime"/>
|
<field name="datetime"/>
|
||||||
</form>
|
</form>
|
Loading…
Reference in New Issue
Block a user