diff --git a/addons/l10n_id_efaktur/models/account_move.py b/addons/l10n_id_efaktur/models/account_move.py index 0523e4585b4..c88f972d5c2 100644 --- a/addons/l10n_id_efaktur/models/account_move.py +++ b/addons/l10n_id_efaktur/models/account_move.py @@ -178,7 +178,7 @@ class AccountMove(models.Model): eTax['REFERENSI'] = number_ref eTax['KODE_DOKUMEN_PENDUKUNG'] = '0' - lines = move.line_ids.filtered(lambda x: x.move_id._is_downpayment() and x.price_unit < 0 and not x.display_type) + lines = move.line_ids.filtered(lambda x: x.move_id._is_downpayment() and x.price_unit < 0 and x.display_type == 'product') eTax['FG_UANG_MUKA'] = 0 eTax['UANG_MUKA_DPP'] = int(abs(sum(lines.mapped(lambda l: float_round(l.price_subtotal, 0))))) eTax['UANG_MUKA_PPN'] = int(abs(sum(lines.mapped(lambda l: float_round(l.price_total - l.price_subtotal, 0))))) diff --git a/addons/l10n_ph/wizard/generate_2307_wizard.py b/addons/l10n_ph/wizard/generate_2307_wizard.py index f76e97e4200..264ec0bf86d 100644 --- a/addons/l10n_ph/wizard/generate_2307_wizard.py +++ b/addons/l10n_ph/wizard/generate_2307_wizard.py @@ -55,7 +55,7 @@ class Generate2307Wizard(models.TransientModel): 'last_name': partner.last_name or '', 'address': ', '.join([val for val in partner_address_info if val]) } - for invoice_line in move.invoice_line_ids.filtered(lambda l: not l.display_type): + for invoice_line in move.invoice_line_ids.filtered(lambda l: l.display_type not in ('line_note', 'line_section')): for tax in invoice_line.tax_ids.filtered(lambda x: x.l10n_ph_atc): values['product_name'] = re.sub(r'[\(\)]', '', invoice_line.product_id.name) values['atc'] = tax.l10n_ph_atc