feat: Se crea asistente para agendar próxima 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
56550df81a
commit
b34a1e19af
@ -41,7 +41,7 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
|||||||
super(ProspectTrace, cls).__setup__()
|
super(ProspectTrace, cls).__setup__()
|
||||||
cls._buttons.update({
|
cls._buttons.update({
|
||||||
'wizard_schedule': {
|
'wizard_schedule': {
|
||||||
'invisible': Eval('state') == 'open',
|
'invisible': Eval('state') == 'with_pending_calls',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
|||||||
@classmethod
|
@classmethod
|
||||||
@ModelView.button_action(
|
@ModelView.button_action(
|
||||||
'sale_opportunity_management.schedule_call_wizard')
|
'sale_opportunity_management.schedule_call_wizard')
|
||||||
def wizard_schedule():
|
def wizard_schedule(cls, prospect_traces):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@fields.depends('calls', 'pending_call', 'current_interest', 'state')
|
@fields.depends('calls', 'pending_call', 'current_interest', 'state')
|
||||||
|
@ -25,6 +25,9 @@ this repository contains the full copyright notices and license terms. -->
|
|||||||
</page>
|
</page>
|
||||||
</notebook>
|
</notebook>
|
||||||
|
|
||||||
|
<group col="-1" colspan="6" id="buttons">
|
||||||
|
<button name="wizard_schedule" icon="tryton-calendar"/>
|
||||||
|
</group>
|
||||||
<label name="pending_call"/>
|
<label name="pending_call"/>
|
||||||
<field name="pending_call"/>
|
<field name="pending_call"/>
|
||||||
<label name="state"/>
|
<label name="state"/>
|
||||||
|
@ -4,5 +4,4 @@ this repository contains the full copyright notices and license terms. -->
|
|||||||
<form>
|
<form>
|
||||||
<label name="date_time"/>
|
<label name="date_time"/>
|
||||||
<field name="date_time"/>
|
<field name="date_time"/>
|
||||||
<button name="wizard_schedule" icon="tryton-forward"/>
|
|
||||||
</form>
|
</form>
|
Loading…
Reference in New Issue
Block a user