Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] l10n_ar_ux: uninstall hooks for monkey patches #920

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

cav-adhoc
Copy link
Contributor

No description provided.

@roboadhoc
Copy link

Copy link
Contributor

@maq-adhoc maq-adhoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vemos si funciona

@@ -5,6 +5,8 @@
from odoo import api, SUPERUSER_ID
import logging
_logger = logging.getLogger(__name__)
from odoo.addons.l10n_ar.models.account_move import AccountMove as AccountMoveAr
from odoo.addons.l10n_ar.models.account_fiscal_position import AccountFiscalPosition
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from odoo.addons.l10n_ar.models.account_fiscal_position.AccountFiscalPosition import _get_fiscal_position as _get_fiscal_position_original

Comment on lines +42 to +46
@api.model
def _get_fiscal_position(self, partner, delivery=None):
return super(AccountFiscalPosition, self)._get_fiscal_position(partner, delivery=delivery)

AccountFiscalPosition._get_fiscal_position = _get_fiscal_position
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AccountFiscalPosition._get_fiscal_position = _get_fiscal_position_original

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants