(self, options, line_amount, carried_over_amount)
The vp14 debt line will be carried over to the vp7 line of the next period, if the amount is between 0 and 25.82
        Else the amount in vp7 will stay 0
The vp14 debt line will be carried over to the vp7 line of the next period, if the amount is between 0 and 25.82
        Else the amount in vp7 will stay 0
The vp14 debt line will be carried over to the vp7 line of the next period if the amount is between 0 and 25 . 82 Else the amount in vp7 will stay 0
def vp14_debt_carryover_condition(self, options, line_amount, carried_over_amount):
        """
        The vp14 debt line will be carried over to the vp7 line of the next period, if the amount is between 0 and 25.82
        Else the amount in vp7 will stay 0
        """
        if options['tax_unit'] == 'company_only':
            company = self.env.company
        else:
            tax_unit = self.env['account.tax.unit'].browse(options['tax_unit'])
            company = tax_unit.main_company_id

        base_currency = company.currency_id
        target_currency = self.env.ref('base.EUR')

        amount_in_euro = base_currency._convert(line_amount, target_currency, company, options['date']['date_to'])
        if amount_in_euro <= 25.82:
            return (None, 0)
        else:
            return None
def vp14_debt_carryover_condition ( self , options , line_amount , carried_over_amount ) : if options [ 'tax_unit' ] == 'company_only' : company = self . env . company else : tax_unit = self . env [ 'account.tax.unit' ] . browse ( options [ 'tax_unit' ] ) company = tax_unit . main_company_id base_currency = company . currency_id target_currency = self . env . ref ( 'base.EUR' ) amount_in_euro = base_currency . _convert ( line_amount , target_currency , company , options [ 'date' ] [ 'date_to' ] ) if amount_in_euro <= 25.82 : return ( None , 0 ) else : return None