feat: Se añade posibilidad de cerrar (archivar) seguimiento a prospectos
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
d099529aa6
commit
2cc3864767
@ -1,13 +1,13 @@
|
||||
# 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
|
||||
from trytond.model import ModelSQL, ModelView, fields, DeactivableMixin
|
||||
from trytond.pool import Pool
|
||||
|
||||
from .selections.call_types import CallTypes
|
||||
from .selections.interest import Interest
|
||||
|
||||
|
||||
class ProspectTrace(ModelSQL, ModelView):
|
||||
class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
||||
'Seguimiento de un prospecto'
|
||||
__name__ = 'sale.prospect_trace'
|
||||
|
||||
@ -47,7 +47,7 @@ class ProspectTrace(ModelSQL, ModelView):
|
||||
|
||||
@fields.depends('pending_calls', 'state')
|
||||
def on_change_pending_calls(self):
|
||||
if len(self.pending_calls) > 0:
|
||||
if len(self.pending_calls) >= 1:
|
||||
self.state = 'with_pending_calls'
|
||||
|
||||
@fields.depends('prospect')
|
||||
|
@ -2,6 +2,9 @@
|
||||
<!-- 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="active"/>
|
||||
<field name="active"/>
|
||||
|
||||
<label name="prospect"/>
|
||||
<field name="prospect"/>
|
||||
|
||||
@ -23,4 +26,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="pending_calls" colspan="2"/>
|
||||
</page>
|
||||
</notebook>
|
||||
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
</form>
|
Loading…
Reference in New Issue
Block a user