17 lines
		
	
	
		
			703 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			703 B
		
	
	
	
		
			Python
		
	
	
# Copyright 2018-Today datenpol gmbh (<http://www.datenpol.at>)
 | 
						|
# License OPL-1 or later (https://www.odoo.com/documentation/user/11.0/legal/licenses/licenses.html#licenses).
 | 
						|
 | 
						|
from odoo import fields, models
 | 
						|
 | 
						|
 | 
						|
class DeliveryCarrier(models.Model):
 | 
						|
    _inherit = 'delivery.carrier'
 | 
						|
 | 
						|
    integration_level = fields.Selection([('none', 'NONE'), ('rate', 'Get Rate'),
 | 
						|
                                          ('rate_and_ship', 'Get Rate and Create Shipment')],
 | 
						|
                                         string="Integration Level", default='none',
 | 
						|
                                         help="Action while validating Delivery Orders")
 | 
						|
 | 
						|
 | 
						|
    key_mapping = fields.Char('Mapping',track_visibility='onchange')
 |