(self, move_line, line_type)
return {
            "line_type": line_type,
            "invoice_date": move_line.date,
            "partner_id": partner.id,
            "vat_number": partner.vat,
            "move_id": invoice.id,
            "ref": ref,
            "external_ref": ext_ref,
            "vat_book_id": self.id,
            "tax_lines": {},
            "base_amount": 0.0,
            "special_tax_group": False,
        }
This function make the dictionary to create a new record in issued
        invoices, Received invoices or rectification invoices

        Args:
            move_line (obj): move

        Returns:
            dictionary: Vals from the new record.
This function make the dictionary to create a new record in issued
        invoices, Received invoices or rectification invoices
This function make the dictionary to create a new record in issued invoices Received invoices or rectification invoices
def _prepare_book_line_vals(self, move_line, line_type):
        """
        This function make the dictionary to create a new record in issued
        invoices, Received invoices or rectification invoices

        Args:
            move_line (obj): move

        Returns:
            dictionary: Vals from the new record.
        """
        ref = move_line.ref
        ext_ref = ""
        invoice = move_line.move_id
        partner = move_line.partner_id
        if invoice:
            if invoice.is_invoice():
                partner = invoice.commercial_partner_id
            ref = invoice.name
            ext_ref = invoice.ref
        return {
            "line_type": line_type,
            "invoice_date": move_line.date,
            "partner_id": partner.id,
            "vat_number": partner.vat,
            "move_id": invoice.id,
            "ref": ref,
            "external_ref": ext_ref,
            "vat_book_id": self.id,
            "tax_lines": {},
            "base_amount": 0.0,
            "special_tax_group": False,
        }
def _prepare_book_line_vals ( self , move_line , line_type ) : ref = move_line . ref ext_ref = "" invoice = move_line . move_id partner = move_line . partner_id if invoice : if invoice . is_invoice ( ) : partner = invoice . commercial_partner_id ref = invoice . name ext_ref = invoice . ref return { "line_type" : line_type , "invoice_date" : move_line . date , "partner_id" : partner . id , "vat_number" : partner . vat , "move_id" : invoice . id , "ref" : ref , "external_ref" : ext_ref , "vat_book_id" : self . id , "tax_lines" : { } , "base_amount" : 0.0 , "special_tax_group" : False , }