Skip to content

Commit

Permalink
[FIX] l10n_ar_ux: only apply to AR
Browse files Browse the repository at this point in the history
Avoid multi loc companties, only change the way that the
manual numbering field works if the company is AR

X-original-commit: de4ae19
  • Loading branch information
zaoral committed Feb 2, 2023
1 parent bc5eba3 commit b10010b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ar_ux/models/account_move.py
Expand Up @@ -131,6 +131,6 @@ def _l10n_ar_include_vat(self):
def _is_manual_document_number(self):
res = super()._is_manual_document_number()
# when issuer is supplier de numbering works opposite (supplier numerate invoices, customer encode bill)
if self.journal_id._l10n_ar_journal_issuer_is_supplier():
if self.country_code == 'AR' and self.journal_id._l10n_ar_journal_issuer_is_supplier():
return not res
return res

0 comments on commit b10010b

Please sign in to comment.