odoo/ext/custom-addons/tz_carrier_show_integration/models/delivery_carrier.py

14 lines
632 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")