1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_avatax_geolocalize/wizard/avatax_validate_address.py
2024-12-10 09:04:09 +07:00

17 lines
526 B
Python

# coding: utf-8
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class AvataxValidateAddress(models.TransientModel):
_inherit = 'avatax.validate.address'
def action_save_validated(self):
res = super().action_save_validated()
for wizard in self:
wizard.partner_id.write({
'date_localization': fields.Date.context_today(wizard.partner_id),
'is_avatax_valid': True,
})
return res