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 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.
|
||||||
from trytond.model import ModelSQL, ModelView, fields
|
from trytond.model import ModelSQL, ModelView, fields, DeactivableMixin
|
||||||
from trytond.pool import Pool
|
from trytond.pool import Pool
|
||||||
|
|
||||||
from .selections.call_types import CallTypes
|
from .selections.call_types import CallTypes
|
||||||
from .selections.interest import Interest
|
from .selections.interest import Interest
|
||||||
|
|
||||||
|
|
||||||
class ProspectTrace(ModelSQL, ModelView):
|
class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
|
||||||
'Seguimiento de un prospecto'
|
'Seguimiento de un prospecto'
|
||||||
__name__ = 'sale.prospect_trace'
|
__name__ = 'sale.prospect_trace'
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ class ProspectTrace(ModelSQL, ModelView):
|
|||||||
|
|
||||||
@fields.depends('pending_calls', 'state')
|
@fields.depends('pending_calls', 'state')
|
||||||
def on_change_pending_calls(self):
|
def on_change_pending_calls(self):
|
||||||
if len(self.pending_calls) > 0:
|
if len(self.pending_calls) >= 1:
|
||||||
self.state = 'with_pending_calls'
|
self.state = 'with_pending_calls'
|
||||||
|
|
||||||
@fields.depends('prospect')
|
@fields.depends('prospect')
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<!-- 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="active"/>
|
||||||
|
<field name="active"/>
|
||||||
|
|
||||||
<label name="prospect"/>
|
<label name="prospect"/>
|
||||||
<field 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"/>
|
<field name="pending_calls" colspan="2"/>
|
||||||
</page>
|
</page>
|
||||||
</notebook>
|
</notebook>
|
||||||
|
|
||||||
|
<label name="state"/>
|
||||||
|
<field name="state"/>
|
||||||
</form>
|
</form>
|
Loading…
Reference in New Issue
Block a user