From c1df741b36b413e668796f0be01e0fe1a8856244 Mon Sep 17 00:00:00 2001 From: Brice bib Bartoletti Date: Tue, 18 Jul 2023 16:46:30 +0200 Subject: [PATCH] [REF] account_edi_ubl_cii: remove deprecated method The aim of this commit is to remove a deprecated method that should have been removed in master Task-id: 3326977 Part-of: odoo/odoo#136072 --- .../models/account_edi_common.py | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/addons/account_edi_ubl_cii/models/account_edi_common.py b/addons/account_edi_ubl_cii/models/account_edi_common.py index f927117a99f..109b2e1040b 100644 --- a/addons/account_edi_ubl_cii/models/account_edi_common.py +++ b/addons/account_edi_ubl_cii/models/account_edi_common.py @@ -437,32 +437,6 @@ class AccountEdiCommon(models.AbstractModel): invoice.write({'invoice_line_ids': line_vals}) return logs - def _import_fill_invoice_down_payment(self, invoice, prepaid_node, qty_factor): - """ - DEPRECATED: removed in master - Creates a down payment line on the invoice at import if prepaid_node (TotalPrepaidAmount in CII, - PrepaidAmount in UBL) exists. - qty_factor -1 if the xml is labelled as an invoice but has negative amounts -> conversion into a credit note - needed, so we need this multiplier. Otherwise, qty_factor is 1. - """ - if prepaid_node is not None and float(prepaid_node.text) != 0: - invoice.write({ - 'invoice_line_ids': [ - Command.create({ - 'display_type': 'line_section', - 'sequence': 9998, - 'name': _("Down Payments"), - }), - Command.create({ - 'sequence': 9999, - 'name': _("Down Payment"), - 'price_unit': float(prepaid_node.text), - 'quantity': qty_factor * -1, - 'tax_ids': False, - }), - ] - }) - def _import_log_prepaid_amount(self, invoice_form, prepaid_node, qty_factor): """ Log a message in the chatter at import if prepaid_node (TotalPrepaidAmount in CII, PrepaidAmount in UBL) exists.