initial commit - l10n_sk_partner
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
def write(self, vals):
|
||||
res = super().write(vals)
|
||||
for company in self:
|
||||
if company.partner_id.dic and company.income_tax_id != company.partner_id.dic:
|
||||
company.income_tax_id = company.partner_id.dic
|
||||
return res
|
||||
Reference in New Issue
Block a user