feat: Se crea asistente para agendar próxima llamada
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Camilo Gonzalez 2023-08-21 09:27:48 -05:00
parent 56550df81a
commit b34a1e19af
3 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
super(ProspectTrace, cls).__setup__()
cls._buttons.update({
'wizard_schedule': {
'invisible': Eval('state') == 'open',
'invisible': Eval('state') == 'with_pending_calls',
}
})
@ -52,7 +52,7 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
@classmethod
@ModelView.button_action(
'sale_opportunity_management.schedule_call_wizard')
def wizard_schedule():
def wizard_schedule(cls, prospect_traces):
pass
@fields.depends('calls', 'pending_call', 'current_interest', 'state')

View File

@ -25,6 +25,9 @@ this repository contains the full copyright notices and license terms. -->
</page>
</notebook>
<group col="-1" colspan="6" id="buttons">
<button name="wizard_schedule" icon="tryton-calendar"/>
</group>
<label name="pending_call"/>
<field name="pending_call"/>
<label name="state"/>

View File

@ -4,5 +4,4 @@ this repository contains the full copyright notices and license terms. -->
<form>
<label name="date_time"/>
<field name="date_time"/>
<button name="wizard_schedule" icon="tryton-forward"/>
</form>