chore(sale_opportunity): Se remueve código muerto
This commit is contained in:
parent
b1c3b21a9c
commit
6c31dfb64f
@ -9,7 +9,6 @@ from core.Prospect.wizards.reassign_prospect_by_prospect \
|
||||
import ReasignProspectByProspect, ReassignProspectByProspectStart
|
||||
from core.Prospect.wizards.reassign_prospect_by_operator \
|
||||
import ReassignProspectByOperator, ReassignProspectByOperatorStart
|
||||
from core.Prospect.wizards.assign_to_me import AssignToMe, AssignToMeStart
|
||||
|
||||
# Prospect Trace Core
|
||||
from core.ProspectTrace.wizards.make_call \
|
||||
@ -51,7 +50,6 @@ def register():
|
||||
MakeCallAskTask,
|
||||
ReassignProspectByOperatorStart,
|
||||
ReassignProspectByProspectStart,
|
||||
AssignToMeStart,
|
||||
module='sale_opportunity_management', type_='model')
|
||||
Pool.register(
|
||||
ScheduleCall,
|
||||
@ -59,7 +57,6 @@ def register():
|
||||
MakeCall,
|
||||
ReassignProspectByOperator,
|
||||
ReasignProspectByProspect,
|
||||
AssignToMe,
|
||||
module='sale_opportunity_management', type_='wizard')
|
||||
Pool.register(
|
||||
module='sale_opportunity_management', type_='report')
|
||||
|
@ -1,28 +0,0 @@
|
||||
# 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.wizard import Wizard, StateView, Button, StateTransition
|
||||
from trytond.model import ModelView, fields
|
||||
|
||||
|
||||
class AssignToMe(Wizard):
|
||||
'Asignar un prospecto al usuario actual'
|
||||
__name__ = 'sale.prospect.assign_to_me'
|
||||
|
||||
start = StateView(
|
||||
model_name='sale.prospect.assign_to_me.start',
|
||||
view='sale_opportunity_management.assign_to_me_start_view_form',
|
||||
buttons=[
|
||||
Button("Cancel", 'end', 'tryton-cancel'),
|
||||
Button("Confirm", 'confirm', 'tryton-ok', default=True)
|
||||
]
|
||||
)
|
||||
|
||||
start = StateTransition()
|
||||
|
||||
|
||||
class AssignToMeStart(ModelView):
|
||||
'Inicio de asignación de un prospecto al usuario actual'
|
||||
__name__ = 'sale.prospect.assign_to_me.start'
|
||||
|
||||
assign_to_me = fields.Boolean("Assign to me?")
|
11
prospect.xml
11
prospect.xml
@ -165,17 +165,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||
action="reassign_by_prospect_wizard" />
|
||||
|
||||
|
||||
<record model="ir.action.wizard" id="assign_to_me_wizard">
|
||||
<field name="name">Assign to me</field>
|
||||
<field name="wiz_name">sale.prospect.assign_to_me</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="assign_to_me_start_view_form">
|
||||
<field name="model">sale.prospect.assign_to_me.start</field>
|
||||
<field name="type">form</field>
|
||||
<field name="name">assign_to_me_form</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.model.access" id="access_sale">
|
||||
<field name="model" search="[('model', '=', 'sale.prospect')]" />
|
||||
<field name="perm_read" eval="False" />
|
||||
|
@ -32,4 +32,5 @@ Crear prospecto::
|
||||
>>> prospect_trace, = ProspectTrace.find([('prospect', '=', prospect)])
|
||||
>>> assigned_operator_id = prospect_trace.prospect_assigned_operator.id
|
||||
>>> assert operator.id == assigned_operator_id
|
||||
>>> assert prospect.assigned_operator.id == assigned_operator_id
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- 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>
|
||||
</form>
|
Loading…
Reference in New Issue
Block a user