Skip to content

Commit

Permalink
fixup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoral committed Dec 20, 2024
1 parent a50b481 commit 9d373c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions l10n_ar_account_withholding_fix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
# directory
##############################################################################
import logging
from odoo import api
from odoo import api, SUPERUSER_ID

_logger = logging.getLogger(__name__)


def post_init_hook(cr):
env = api.Environment(cr)
def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
records = env['ir.model.data'].search([
('module', '=', 'l10n_ar_account_withholding_fix'),
('model', '=', 'account.tax'),
]).mapped('res_id')

])
records.write({
'module': 'l10n_ar_account_withholding',
'noupdate': True,
Expand Down

0 comments on commit 9d373c8

Please sign in to comment.