Skip to content

Commit

Permalink
fix tax_map
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-demeyer committed Aug 21, 2019
1 parent 109fb5d commit 94db041
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions l10n_be_coa_multilang/wizards/l10n_be_vat_declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ def _get_case_domain(self, case_code, get_domain=True):
]
inv_check = (
"{aml}.invoice_id.type == '%s'"
" and not {aml}.invoice_id"
" and {aml}.journal_id.type == 'sale'"
" or "
"(not {aml}.invoice_id"
" and {aml}.journal_id.type == 'sale')"
) % inv_type
else:
inv_type_args = [
Expand All @@ -322,8 +323,8 @@ def _get_case_domain(self, case_code, get_domain=True):
('invoice_id', '=', False),
]
inv_check = (
"{aml}.invoice_id.type == '%s'"
" or not {aml}.invoice_id"
"({aml}.invoice_id.type == '%s'"
" or not {aml}.invoice_id)"
) % inv_type
aml_dom = ['&'] + aml_dom + inv_type_args
aml_check = aml_check + ' and ' + inv_check
Expand Down

0 comments on commit 94db041

Please sign in to comment.