[MIG] delivery_partner_ups: migrate delivery_partner_module to Odoo 14.0

This commit is contained in:
Leighton Pennicott
2020-11-09 09:10:12 -05:00
committed by Jared Kipe
parent 5e0c85cbb9
commit 2cb8d83b06
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ from odoo.exceptions import ValidationError
class PartnerShippingAccount(models.Model):
_inherit = 'partner.shipping.account'
delivery_type = fields.Selection(selection_add=[('ups', 'UPS')])
delivery_type = fields.Selection(selection_add=[('ups', 'UPS')], ondelete={'ups': 'set default'})
ups_zip = fields.Char(string='UPS Account ZIP')
def ups_check_validity(self):