chore: closed #21
	
		
			
	
		
	
	
		
	
		
			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:
		
							
								
								
									
										10
									
								
								call.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								call.py
									
									
									
									
									
								
							@@ -12,16 +12,20 @@ class Call(ModelSQL, ModelView):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    __name__ = 'sale.call'
 | 
					    __name__ = 'sale.call'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    date = fields.Date('Date')
 | 
					    _states = {'readonly': True}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    date = fields.Date('Date', states=_states)
 | 
				
			||||||
    description = fields.Text('Description', strip=True)
 | 
					    description = fields.Text('Description', strip=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    prospect_trace = fields.Many2One('sale.prospect_trace', 'Prospect trace')
 | 
					    prospect_trace = fields.Many2One('sale.prospect_trace', 'Prospect trace')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    interest = fields.Selection(
 | 
					    interest = fields.Selection(
 | 
				
			||||||
        Interest.get_interest_levels(), 'Interest', required=True)
 | 
					        Interest.get_interest_levels(), 'Interest', required=True)
 | 
				
			||||||
    call_type = fields.Selection(CallTypes.get_call_types(), 'Call type')
 | 
					    call_type = fields.Selection(
 | 
				
			||||||
 | 
					        CallTypes.get_call_types(), 'Call type', states=_states)
 | 
				
			||||||
    call_result = fields.Selection(
 | 
					    call_result = fields.Selection(
 | 
				
			||||||
        CallResults.get_call_results(), 'Call result')
 | 
					        CallResults.get_call_results(),
 | 
				
			||||||
 | 
					        'Call result', states=_states)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @classmethod
 | 
					    @classmethod
 | 
				
			||||||
    def default_date(cls):
 | 
					    def default_date(cls):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,24 +11,28 @@ class ProspectTrace(DeactivableMixin, ModelSQL, ModelView):
 | 
				
			|||||||
    'Seguimiento de un prospecto'
 | 
					    'Seguimiento de un prospecto'
 | 
				
			||||||
    __name__ = 'sale.prospect_trace'
 | 
					    __name__ = 'sale.prospect_trace'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    _states = {'readonly': True}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    prospect = fields.Many2One('sale.prospect', 'Prospect', required=True)
 | 
					    prospect = fields.Many2One('sale.prospect', 'Prospect', required=True)
 | 
				
			||||||
    prospect_contact = fields.Many2One(
 | 
					    prospect_contact = fields.Many2One(
 | 
				
			||||||
        'prospect.contact_method', 'Contact method')
 | 
					        'prospect.contact_method', 'Contact method')
 | 
				
			||||||
    prospect_city = fields.Many2One('sale.city', 'City',
 | 
					    prospect_city = fields.Many2One('sale.city', 'City',
 | 
				
			||||||
                                    states={'readonly': True})
 | 
					                                    states=_states)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    calls = fields.One2Many('sale.call', 'prospect_trace', 'Calls')
 | 
					    calls = fields.One2Many('sale.call', 'prospect_trace', 'Calls')
 | 
				
			||||||
    pending_call = fields.Many2One('sale.pending_call', 'Pending call')
 | 
					    pending_call = fields.Many2One('sale.pending_call', 'Pending call')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    current_interest = fields.Selection(
 | 
					    current_interest = fields.Selection(
 | 
				
			||||||
        Interest.get_interest_levels(), 'Current interest')
 | 
					        Interest.get_interest_levels(), 'Current interest',
 | 
				
			||||||
 | 
					        states=_states)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    state = fields.Selection([
 | 
					    state = fields.Selection([
 | 
				
			||||||
            ('unassigned', 'Unassigned'),
 | 
					            ('unassigned', 'Unassigned'),
 | 
				
			||||||
            ('open', 'Open'),
 | 
					            ('open', 'Open'),
 | 
				
			||||||
            ('with_pending_calls', 'With pending calls'),
 | 
					            ('with_pending_calls', 'With pending calls'),
 | 
				
			||||||
            ('closed', 'Closed')
 | 
					            ('closed', 'Closed')
 | 
				
			||||||
            ], 'State')
 | 
					            ], 'State',
 | 
				
			||||||
 | 
					            states=_states)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @classmethod
 | 
					    @classmethod
 | 
				
			||||||
    def default_state(cls):
 | 
					    def default_state(cls):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user